Uninstall docker in WSL Ubuntu

在Windows Subsystem for Linux (WSL)的Ubuntu环境下安装Docker后,由于出现错误,我决定立即卸载。卸载过程中遇到一个问题,即停止Docker命令无法正常工作,因为Docker守护进程状态异常。通过查看进程状态,发现Docker守护进程并未启动,但卸载脚本试图停止它,导致卸载失败。为了解决这个问题,我修改了卸载脚本,用一个不重要的进程PID替换Docker的PID,然后成功卸载了Docker,问题得到解决。
摘要由CSDN通过智能技术生成

After my installation of docker in Windows Sous-System Linux by the command following:

sudo apt-get install docker.io

I regret and I’d like to uninstall it immediately.

The error occured !

dpkg told me that he can’t work well with the command sudo apt-get remove --purge docker.io.

Removing docker.io (17.03.2-0ubuntu2~16.04.1) ...
invoke-rc.d: could not determine current runlevel
 * Stopping Docker: docker                                                                                              No process in pidfile '/var/run/docker-ssd.pid' found running; none killed.
invoke-rc.d: initscript docker, action "stop" failed.
dpkg: error processing package docker.io (--purge):
 subprocess installed pre-removal script returned error exit status 1
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值