-
-
Save resh0607/e725bd42ff05f206987b0faf9ad98620 to your computer and use it in GitHub Desktop.
Revisions
-
tomasevich revised this gist
Nov 20, 2019 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ ## Одной строкой ```bash docker stop $(docker ps -qa) && docker rm $(docker ps -qa) && docker rmi -f $(docker images -qa ) && docker volume rm $(docker volume ls -q) && docker network rm $(docker network ls -q) ``` ## Описание команд @@ -29,7 +29,7 @@ docker rmi -f $(docker images -qa) ### :wave: Удаление всх томов ```bash docker volume rm $(docker volume ls -q) ``` ### :hand: Удаление всех сетей -
tomasevich revised this gist
Nov 20, 2019 . 1 changed file with 5 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,27 +3,27 @@ ## Одной строкой ```bash docker stop $(docker ps -qa) && docker rm $(docker ps -qa) && docker rmi -f $(docker images -qa ) && docker volume rm $(docker volume ls -qf) && docker network rm $(docker network ls -q) ``` ## Описание команд ### :thumbsdown: Остановка всех контейнеров ```bash docker stop $(docker ps -qa) ``` ### :fist: Удаление всех контейнеров ```bash docker rm $(docker ps -qa) ``` ### :v: Удаление всех образов ```bash docker rmi -f $(docker images -qa) ``` ### :wave: Удаление всх томов @@ -35,7 +35,7 @@ docker volume rm $(docker volume ls -qf) ### :hand: Удаление всех сетей ```bash docker network rm $(docker network ls -q) ``` > Ваша инсталяция должна быть чиста :blush: -
tomasevich revised this gist
Nov 20, 2019 . 1 changed file with 13 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,30 +1,38 @@ # Удалить/очистить все данные Докера (контейнеры, образы, тома и сети) ## Одной строкой ```bash docker stop `docker ps -qa` & docker rm `docker ps -qa` & docker rmi -f `docker images -qa ` & docker volume rm $(docker volume ls -qf) & docker network rm `docker network ls -q` ``` ## Описание команд ### :thumbsdown: Остановка всех контейнеров ```bash docker stop `docker ps -qa` ``` ### :fist: Удаление всех контейнеров ```bash docker rm `docker ps -qa` ``` ### :v: Удаление всех образов ```bash docker rmi -f `docker images -qa ` ``` ### :wave: Удаление всх томов ```bash docker volume rm $(docker volume ls -qf) ``` ### :hand: Удаление всех сетей ```bash docker network rm `docker network ls -q` -
tomasevich revised this gist
Nov 20, 2019 . 1 changed file with 7 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -46,8 +46,14 @@ docker images -a docker volume ls ``` ## :point_right: Следующая команда показывает только сети по умолчанию: ```bash docker network ls ``` ## :: Следующая команда удаляет неиспользуемые образы ```bash docker system prune ``` -
tomasevich revised this gist
Nov 20, 2019 . 1 changed file with 11 additions and 10 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,36 +1,38 @@ # Удалить/очистить все данные Докера (контейнеры, образы, тома и сети) ## :thumbsdown: Остановка всех контейнеров ```bash docker stop `docker ps -qa` ``` ## :fist: Удаление всех контейнеров ```bash docker rm `docker ps -qa` ``` ## :v: Удаление всех образов ```bash docker rmi -f `docker images -qa ` ``` ## :wave: Удаление всх томов ```bash docker volume rm $(docker volume ls -qf) ``` ## :hand: Удаление всех сетей ```bash docker network rm `docker network ls -q` ``` > Ваша инсталяция должна быть чиста :blush: ## :point_down: Следующие команды не должны выводить какие-либо элементы: ```bash docker ps -a @@ -44,9 +46,8 @@ docker images -a docker volume ls ``` ## :point_right: Следующая команда show показывает только сети по умолчанию: ```bash docker network ls ``` -
tomasevich renamed this gist
Nov 20, 2019 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
tomasevich revised this gist
Nov 20, 2019 . 1 changed file with 39 additions and 12 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,25 +1,52 @@ # :thumbsdown: Остановка всех контейнеров ```bash docker stop `docker ps -qa` ``` # :fist: Удаление всех контейнеров ```bash docker rm `docker ps -qa` ``` # :v: Удаление всех образов ```bash docker rmi -f `docker images -qa ` ``` # :wave: Удаление всх томов ```bash docker volume rm $(docker volume ls -qf) ``` # :hand: Удаление всех сетей ```bash docker network rm `docker network ls -q` ``` # Ваша инсталяция должна быть чиста как слеза ребенка :blush: # :point_down: Следующие команды не должны выводить какие-либо элементы: ```bash docker ps -a ``` ```bash docker images -a ``` ```bash docker volume ls ``` # :point_right: Следующая команда show показывает только сети по умолчанию: ```bash docker network ls ``` -
beeman created this gist
Nov 15, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,25 @@ # Stop all containers docker stop `docker ps -qa` # Remove all containers docker rm `docker ps -qa` # Remove all images docker rmi -f `docker images -qa ` # Remove all volumes docker volume rm $(docker volume ls -qf) # Remove all networks docker network rm `docker network ls -q` # Your installation should now be all fresh and clean. # The following commands should not output any items: # docker ps -a # docker images -a # docker volume ls # The following command show only show the default networks: # docker network ls