在centos 7 上安装Docker的时候出现了错误:
(也就是这个问题经常是出现在centos 7系统上面,应该是版本的问题和docker上面我们使用centos冲突,就是本地上的不是最新的,而拉下来的)是最新的,
经常出现的cu错误如下显示:
-
Transaction check error: file /usr/lib64/libsystemd-daemon.so.0 from install of systemd-libs-219-19.el7.x86_64 conflicts with file from package systemd-container-libs-208.20-6.el7.centos.x86_64 file /usr/lib64/libsystemd-id128.so.0 from install of systemd-libs-219-19.el7.x86_64 conflicts with file from package systemd-container-libs-208.20-6.el7.centos.x86_64 file /usr/lib64/libsystemd-journal.so.0 from install of systemd-libs-219-19.el7.x86_64 conflicts with file from package systemd-container-libs-208.20-6.el7.centos.x86_64 file /usr/lib64/libsystemd-login.so.0 from install of systemd-libs-219-19.el7.x86_64 conflicts with file from package systemd-container-libs-208.20-6.el7.centos.x86_64 file /usr/lib64/libudev.so.1 from install of systemd-libs-219-19.el7.x86_64 conflicts with file from package systemd-container-libs-208.20-6.el7.centos.x86_64 file /usr/lib64/security/pam_systemd.so from install of systemd-libs-219-19.el7.x86_64 conflicts with file from package systemd-container-libs-208.20-6.el7.centos.x86_64
Ps:
之所以会出现这个错误,那是因为从系统容器到真实的容器的转化,因为一些原因,上游的系统是不会过期或者冲突的,所以,所以你将会发生错误。
(虽然不明白什么意思,但是知道就是出现了冲突的问题。)
可以通过:
docker pull centos:latest /
docker pull centos:7
也就是拉下来的是最新的镜像,所以,不会有问题的。
可能是由于特别的版本
(systemd的问题,就需要更新相应的内容。)
RUN yumclean all && yum swap fakesystemd systemd
(责任编辑:IT) |