How to remove Docker completely from Ubuntu?

Опубликовано: 04 Март 2023
на канале: TS
1,738
15

1. Stop all running Docker containers by running the following command:
sudo docker stop $(sudo docker ps -aq)

2. Remove all Docker containers by running the following command:
sudo docker rm $(sudo docker ps -aq)

3. Remove all Docker images by running the following command:
sudo docker rmi $(sudo docker images -aq)

4. Uninstall Docker CE by running the following command:
sudo apt-get purge docker-ce

5. Remove any remaining Docker packages and dependencies by running the following command:
sudo apt-get autoremove --purge docker-ce

6. Remove the Docker directory and all its contents by running the following command:
sudo rm -rf /var/lib/docker


Смотрите видео How to remove Docker completely from Ubuntu? онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь TS 04 Март 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 1,738 раз и оно понравилось 15 людям.