在redhat中安装Docker CE
我试图在我的系统中安装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快 – 没有错误
- sudo yum -y安装docker-ce – 失败并报错
错误:包:docker-ce-17.06.0.ce-1.el7.centos.x86_64(docker-ce-stable)需要:container-selinux> = 2.9
yum可以configuration为尝试通过临时启用禁用的repos和search缺less的依赖关系来解决此类错误。 要启用这个function,请在/etc/yum/pluginconf.d/search-disabled-repos.conf中设置'notify_only = 0'
错误:包:docker-ce-17.06.0.ce-1.el7.centos.x86_64(docker-ce-stable)需要:container-selinux> = 2.9你可以尝试使用–skip-broken来解决问题
有人可以帮助我吗?
container-selinux
软件包可从rhel-7-server-extras-rpms
通道获得。 您可以使用以下命令启用它
subscription-manager repos --enable=rhel-7-server-extras-rpms
但是如果你没有Enterprise Linux的订阅,你可以使用CentOS Extra repo作为解决方法。 将以下内容添加到/etc/yum.repos.d/centos.repo
[CentOS-extras] name=CentOS-7-Extras mirrorlist=http://mirrorlist.centos.org/?release=7&arch=$basearch&repo=extras&infra=$infra #baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/ gpgcheck=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
- Kubernetes垃圾收集失败 – FreeDiskSpaceFailed&ImageGCFailed
- openshift在线:错误在StartContainer – ErrImagePull:“未经授权:需要身份validation”
- Kubernetes服务将暴露在本地机器
- 为什么Docker Hub在构build映像时caching自动构build存储库?
- 无法在servicemix docker映像中安装function部件:ERROR http://repo1.maven.org/maven2/com.example/example/0.1/xml/example.xml
- 希望使用相同的主机和端口进行ssh会话
- Docker与GUI应用程序
- 在Elastic Beanstalk上强制HTTPS单容器泊坞窗应用程序
- 如何通过docker API创build和启动一个容器
- Dockerfile:在构build过程中创build并挂载磁盘映像
- Docker Add命令在嵌套的目标目录中不起作用