Note:
The docker package comes from the RHEL Extras repository (rhel-7-server-extras-rpms). RHEL Extras is only supported with the latest RHEL minor release. So now Extras requires RHEL 7.5.
Previous minor releases will fail on dependency errors. Need to download custom version of container-selinux, see below.
u: [email protected]
p: linux2018
u: linuxtechnology
p: linux2018
u: linuxtechnology
p: linux2018
subscription-manager register --auto-attach --release=7.5 --force --baseurl=cdn.redhat.com --username=linuxtechnology --password=linux2018
https://store.docker.com/editions/enterprise/docker-ee-trial?ref=login
Download URL (copy&paste from web):
https://storebits.docker.com/ee/trial/sub-e42aa5ef-aad4-456c-b842-695d80e6bbc3
License key:
{"key_id":"WSHAGpGxRM6NxihSMW235UhxbqmvR0vcMapzlFQ1QQXB","private_key":"kEt4CcOq7cSkWFCDMBlxicLpTVHjkB_nrNg84h_e0UOx","authorization":"ewogICAicGF5bG9hZCI6ICJleUpsZUhCcGNtRjBhVzl1SWpvaU1qQXhPQzB4TVMweE9WUXhNam94TmpvMU4xb2lMQ0owYjJ0bGJpSTZJblZrTWxCclJ6Vk9SR3BUTW1ZeWNFTkZjMFJDVGtOVU1XUk5jV00yWTNWa1ozaGZTMU5vWTNScGVrVTlJaXdpYldGNFJXNW5hVzVsY3lJNk1UQXNJbk5qWVc1dWFXNW5SVzVoWW14bFpDSTZkSEoxWlN3aWJHbGpaVzV6WlZSNWNHVWlPaUpQYm14cGJtVWlMQ0owYVdWeUlqb2lWSEpwWVd3aWZRIiwKICAgInNpZ25hdHVyZXMiOiBbCiAgICAgIHsKICAgICAgICAgImhlYWRlciI6IHsKICAgICAgICAgICAgImp3ayI6IHsKICAgICAgICAgICAgICAgImUiOiAiQVFBQiIsCiAgICAgICAgICAgICAgICJrZXlJRCI6ICJKN0xEOjY3VlI6TDVIWjpVN0JBOjJPNEc6NEFMMzpPRjJOOkpIR0I6RUZUSDo1Q1ZROk1GRU86QUVJVCIsCiAgICAgICAgICAgICAgICJraWQiOiAiSjdMRDo2N1ZSOkw1SFo6VTdCQToyTzRHOjRBTDM6T0YyT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pTSTZJakl3TVRndE1UQXRNVGhVTVRJNk1qVTZNVFZhSW4wIgogICAgICB9CiAgIF0KfQ=="}
sudo rm /etc/yum.repos.d/docker*.repo
export DOCKERURL="https://storebits.docker.com/ee/trial/sub-e42aa5ef-aad4-456c-b842-695d80e6bbc3"
sudo -E sh -c 'echo "$DOCKERURL/rhel" > /etc/yum/vars/dockerurl'
sudo sh -c 'echo "7" > /etc/yum/vars/dockerosversion'
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
sudo yum-config-manager --enable rhel-7-server-extras-rpms
sudo -E yum-config-manager --add-repo "$DOCKERURL/rhel/docker-ee.repo"
#curl -L https://storebits.docker.com/ee/trial/sub-e42aa5ef-aad4-456c-b842-695d80e6bbc3/rhel/docker-ee.repo -O
#sudo -E yum-config-manager --add-repo docker-ee.repo
# HACK:
# Download and install obsolete version of container-selinux from RedHat + dependencies
curl -LO https://.../container-selinux-2.9-4.el7.noarch.rpm
yum install policycoreutils-python selinux-policy-base selinux-policy-targeted
rpm -i container-selinux-2.9-4.el7.noarch.rpm
sudo yum-config-manager --enable docker-ee-stable-18.03
sudo yum -y install docker-ee
sudo systemctl start docker
docker version
sudo curl -L "https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
yum install -y bash-completion bash-completion-extras
sudo curl -L https://raw.githubusercontent.com/docker/compose/1.22.0/contrib/completion/bash/docker-compose -o /etc/bash_completion.d/docker-compose