I installed Docker in Ubuntu while back but when I tried to remove the Docker still exist in the system. I followed this https://stackoverflow.com/a/31313851/2340159 but didn't work.
相关问题
- Docker task in Azure devops won't accept "$(pw
- Unable to run mariadb when mount volume
- Unspecified error (0x80004005) while running a Doc
- What would prevent code running in a Docker contai
- How to reload apache in php-apache docker containe
Apparently, the system I was using had the docker-ce not Docker. Thus, running below command did the trick.
sudo apt-get purge docker-ce
sudo rm -rf /var/lib/docker
Probably your problem is that for Docker that has been installed from default Ubuntu repository, the package name is
docker.io
Or package name may be something like
docker-ce
. Try runningto identify what installed package you have
So you need to change package name in commands from https://stackoverflow.com/a/31313851/2340159 to match package name. For example, for
docker.io
it would be:It adds:
This removes "docker.io" completely from ubuntu
sudo apt-get purge docker.io