Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to remove all docker container at once

to remove all the docker containers at once.
$docker rm $(docker ps -a -q)

to remove all the docker images at once.
$docker rmi $(docker images -a -q)
Comment

remove all docker containers

docker ps -aq
docker stop $(docker ps -aq)
docker rm $(docker ps -aq)
docker rmi $(docker images -q)
Comment

PREVIOUS NEXT
Code Example
Shell :: error: Pulling is not possible because you have unmerged files. 
Shell :: gitignore committed file 
Shell :: please provide a valid cache path error 
Shell :: how to install minecraft to ubuntu 
Shell :: xdebug ubuntu 
Shell :: give write-access of a folder to all users in linux? 
Shell :: delete all unstaged files git 
Shell :: mamp connect to mysql 
Shell :: pip install chromedriver 
Shell :: install storybook angular 
Shell :: sha256 windows 10 
Shell :: gnome 3 show seconds 
Shell :: serial key aida 64 
Shell :: configure your git username/email 
Shell :: git create new branch 
Shell :: git remove all local commits 
Shell :: mvn command not found ubuntu 
Shell :: chromium for linux 
Shell :: install qt creator ubuntu 20.04 
Shell :: how to install netflix on ubuntu 20.04 
Shell :: Clear powershell console history 
Shell :: install nodemcu in arduino 
Shell :: sh wait 10 seconds 
Shell :: bash combine commands 
Shell :: ssd health check terminal linux 
Shell :: revert to master origin branch git 
Shell :: formik npm 
Shell :: cannot connect to daemon at tcp:5037: Connection refused 
Shell :: brave browser linux 
Shell :: how to change time zone in ubuntu 18.04 server 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =