yum install epel-release yum install docker-io service docker start service docker status chkconfig docker on
執行上面命令後一直會報 docker dead but pid file exists的 錯誤,這是由於device-mapper-libs的版本太低。html
$ yum update -y device-mapper-libsdocker
$ yum update -y device-mapper-libs
解決方法參考centos