Look up the Docker command and forget about it when you use it again. .. .. I thought I was wasting a lot of time doing this kind of repetition. This time, I am writing an article with the intention of outputting commands and fixing them in my memory. Docker is currently studying, so commands will be updated from time to time.
The docker run command is a command to execute when you want to start a new container.
docker run [option name] image name
The docker rm command is a command to delete the container started by the docker run command.
docker rm Container ID you want to delete
If you want to delete all containers, execute the command. docker ps -a -q is executed and based on the container list It will delete it.
docker rm `docker ps -a -q`
How to delete Docker image and container
Docker super introduction ② ~ How to start Docker ~ [For beginners]
Recommended Posts