Docker的安装卸载

1、安装:

curl -sSL 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



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值