是否可以在RHEL7上的特定版本17.03中安装DockerCE?
这里有信息:
关于在RHEL上安装Docker的https://docs.docker.com/engine/installation/linux/rhel/#install-using-the-repository,但没有版本信息.
这里有Docker 17.03,但只在Docker EE而不是Docker CE
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/7.0_Release_Notes/sect-Red_Hat_Enterprise_Linux-7.0_Release_Notes-Linux_Containers_with_Docker_Format-Using_Docker.html 但他们谈论的是Docker v 0.12
Matt Schucha.. 77
根据此处的文档,您可以通过以下方式在RHEL 7.3 64位上安装Docker CE 17.03(或未来版本):
在RHEL上设置Docker CE存储库:
sudo yum install -y yum-utils sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo sudo yum makecache fast
在RHEL上安装最新版本的Docker CE:
sudo yum -y install docker-ce
或者,您可以指定Docker CE的特定版本:
sudo yum -y install docker-ce--
启动Docker:
sudo systemctl start docker
测试您的Docker CE安装:
sudo docker run hello-world
不要忘记`sudo systemctl enable docker`,否则服务不会在启动时自动启动. (5认同)
这实际上不是手动安装,但除此之外,非企业Moby是在Apache 2.0许可下发布的,因此安装和使用它时不存在许可问题.如果您从企业中获取代码并重新使用它,或者在没有付费的情况下使用企业,则可能存在许可问题. (4认同)
@leeyuiwah你必须先卸载旧的Docker RPM.出于某种原因,Docker(公司)忘记在其RPM元数据中使用`obsoletes`标签,因此CE不会像它应该那样自动替换旧系列. (4认同)
我的机器安装了RPM`docker-1.12.6-16-e17.x86_64`,我收到错误:错误:docker-ce与2冲突:docker-1.12.6-16.el7.x86_64`.错误消息后有两个建议:1.`你可以尝试使用--skip-broken来解决问题`和2.你可以尝试运行:rpm -Va --nofiles --nodigest`.你会推荐什么?谢谢! (3认同)
Bertrand_Szo.. 31
一次性开发测试程序RHEL 7.3.永远不要在生产中这样做.
# pre-requisite for container-selinux-2.9-4.el7.noarch.rpm sudo yum install policycoreutils-python wget http://mirror.centos.org/centos/7/extras/x86_64/Packages/container-selinux-2.107-3.el7.noarch.rpm sudo rpm -i container-selinux-2.21-1.el7.noarch.rpm #Set up the Docker CE repository on RHEL: sudo yum install -y yum-utils sudo yum install -y device-mapper-persistent-data lvm2 sudo yum-config-manager --enable rhel-7-server-extras-rpms sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo sudo yum makecache fast # Install the latest version of Docker CE on RHEL: sudo yum -y install docker-ce #Start Docker: sudo systemctl start docker #Test your Docker CE installation: sudo docker run hello-world # configure Docker to start on boot sudo systemctl enable docker # add user to the docker group sudo usermod -aG docker jethro # install Docker Compose: # install python-pip wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm sudo yum install ./epel-release-latest-7.noarch.rpm sudo yum install -y python-pip sudo pip install docker-compose # upgrade your Python packages: sudo yum upgrade python*
以上假设您不使用代理.如果是,则需要proxy=http://myproxy:myport
在每个文件的每个块的末尾添加几行/etc/yum.repos.d/
,或者将其添加到/etc/yum.conf
.
希望这可以帮助.
根据此处的文档,您可以通过以下方式在RHEL 7.3 64位上安装Docker CE 17.03(或未来版本):
在RHEL上设置Docker CE存储库:
sudo yum install -y yum-utils sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo sudo yum makecache fast
在RHEL上安装最新版本的Docker CE:
sudo yum -y install docker-ce
或者,您可以指定Docker CE的特定版本:
sudo yum -y install docker-ce--
启动Docker:
sudo systemctl start docker
测试您的Docker CE安装:
sudo docker run hello-world
一次性开发测试程序RHEL 7.3.永远不要在生产中这样做.
# pre-requisite for container-selinux-2.9-4.el7.noarch.rpm sudo yum install policycoreutils-python wget http://mirror.centos.org/centos/7/extras/x86_64/Packages/container-selinux-2.107-3.el7.noarch.rpm sudo rpm -i container-selinux-2.21-1.el7.noarch.rpm #Set up the Docker CE repository on RHEL: sudo yum install -y yum-utils sudo yum install -y device-mapper-persistent-data lvm2 sudo yum-config-manager --enable rhel-7-server-extras-rpms sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo sudo yum makecache fast # Install the latest version of Docker CE on RHEL: sudo yum -y install docker-ce #Start Docker: sudo systemctl start docker #Test your Docker CE installation: sudo docker run hello-world # configure Docker to start on boot sudo systemctl enable docker # add user to the docker group sudo usermod -aG docker jethro # install Docker Compose: # install python-pip wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm sudo yum install ./epel-release-latest-7.noarch.rpm sudo yum install -y python-pip sudo pip install docker-compose # upgrade your Python packages: sudo yum upgrade python*
以上假设您不使用代理.如果是,则需要proxy=http://myproxy:myport
在每个文件的每个块的末尾添加几行/etc/yum.repos.d/
,或者将其添加到/etc/yum.conf
.
希望这可以帮助.
对于那些面临以下错误的人:
Error: Package: docker-ce-17.06.0.ce-1.el7.centos.x86_64 (docker-ce-stable) Requires: container-selinux >= 2.9 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
在RHEL 7.3+上安装docker时,我们需要执行:
sudo subscription-manager repos --enable rhel-7-server-extras-rpms
这将在yum update上安装额外的rpms.执行后:
sudo yum update
然后按照: 安装Docker
这对我有用.
安装DOCKER RHEL / CENTOS
前往:https : //download.docker.com/linux/centos/7/x86_64/stable/Packages/
下载:docker-ce-17.03.2.ce-1.el7.centos.x86_64.rpm 2018-06-08 05:48 19M下载:docker-ce-selinux-17.03.2.ce-1.el7.centos。 noarch.rpm 2018-06-08 05:48 29K
上传到服务器
yum -y安装docker-ce-selinux-17.03.2.ce-1.el7.centos.noarch.rpm
yum -y安装docker-ce-17.03.2.ce-1.el7.centos.x86_64.rpm
sudo systemctl启动docker
REF: 在RHEL7上安装Docker CE 17.03 https://nickjanetakis.com/blog/docker-tip-39-installing-docker-ce-on-redhat-rhel-7x https://docs.docker.com/install/linux / docker-ee / rhel /#set-up-the-repository