在 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, 然後就好了...

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章