在 CentOS 下手工安裝 Docker v1.1x


Docker在 centos 6.x 下面默認最新的版本是1.7, 然而這個並不符合我的實際需求, 尤其我需要 docker-compose 來作為編配工具部署swarm, 所以我只有手工安裝了.

首先參考官方文檔,
https://docs.docker.com/engine/installation/binaries/

我下載了最新的 Docker binary 版本, 然后卸載了原來的版本,

yum erase docker-engine

然后

mv docker/* /usr/bin

然后

sudo dockers &

然后出錯啦....

[root@dev141 src]# INFO[0000] libcontainerd: new containerd process, pid: 29287 
WARN[0000] containerd: low RLIMIT_NOFILE changing to max  current=1024 max=4096
ERRO[0001] devmapper: Udev sync is not supported. This will lead to data loss and unexpected behavior. Install a dynamic binary to use devicemapper or select a different storage driver.      For more information, see https://docs.docker.com/engine/reference/commandline/daemon/#daemon-storage-driver-option 
ERRO[0001] [graphdriver] prior storage driver "devicemapper" failed: driver not supported 
FATA[0001] Error starting daemon: error initializing graphdriver: driver not supported 

然后我開始寫這篇文章, 方便自己哪天忘了...

安裝 centos 6.x 缺的

yum install udev udev-devel  device-mapper-libs

然后錯誤依舊...
然后我醒悟過來, 刪掉了/var/lib/docker, 然后就好了...

至於為什么... 我想可能是數據格式不一致了... 待后面有時間深入研究...


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM