我有一個centos 7服務器,我安裝了docker-ce(17.06.0-ce,build 02c1d87)。 當我試圖安裝kubernetes時,我一直處於衝突之下。在docker-ce安裝期間已經安裝了docker-1.12.6-32.git88a4867.el7.centos.x86_64依賴項。如果我卸載docker-ce,我可以安裝kubernetes。由於這種衝突,我無法在機器上安裝docker-ce和kubernetes。kubernetes在centos7上安裝
我卸載碼頭並重新安裝它,但沒有運氣。請幫我這個
---> Package docker-client.x86_64 2:1.12.6-32.git88a4867.el7.centos will be installed
---> Package docker-common.x86_64 2:1.12.6-32.git88a4867.el7.centos will be installed
--> Processing Conflict: docker-ce-17.06.0.ce-1.el7.centos.x86_64 conflicts docker
--> Processing Conflict: docker-ce-17.06.0.ce-1.el7.centos.x86_64 conflicts docker-io
--> Finished Dependency Resolution
Error: docker-ce conflicts with 2:docker-1.12.6-32.git88a4867.el7.centos.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
FYI:我已經嘗試過百勝刪除碼頭工人碼頭工人,碼頭工人的發動機,SELinux的容器SELinux和安裝kubernetes。但是這種方法不允許我在容器中做任何事情。在Ubuntu容器中的Yum更新引發錯誤。我也在nginx容器,centos容器中出錯。 E:無法打開鎖定文件/ var/lib/dpkg/lock - 打開(13:權限被拒絕) E:無法鎖定管理目錄(/ var/lib/dpkg /),你是否root? 「
我以root身份執行命令。
所以我需要卸載docker-ce並安裝docker版本1.12,然後繼續安裝kubernetes> –
我認爲是的,是的。 – zigarn
它工作。謝謝:) –