1、安装:
curl -sSL https://get.docker.com/ | bash -x
2、卸载:
sudo apt-get purge docker-engine
sudo apt-get autoremove --purge docker-engine
rm -rf /var/lib/docker
https://www.zhihu.com/question/34494897
3、docker运行失败的一个异常情况
安装完docker之后,无法启动docker
cat /var/log/upstat/docker.log
time="2016-09-01T20:51:54.838969138+08:00" level=fatal msg="listen tcp 127.0.0.1:4243: bind: address already in use" netstat -tlp|grep port 实际端口未占用
service docker start 无法启动
docker ps 等命令,都提示无法连接docker daemon线程
解决参考 :https://github.com/docker/docker/issues/17645
kikiya commented on 18 Dec 2015
Solved by manually starting the daemon. For some reason, the service is not actually starting it.
ran docker daemon & and now it's working fine. will have to investigate further to see why the service is not fully starting it.
手动启动 daemon