I'll forget to look it up, so I've put together a list of frequently used Docker commands [updated from time to time]

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.

docker run command

The docker run command is a command to execute when you want to start a new container.

docker run [option name] image name

docker rm command

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`

Reference URL

How to delete Docker image and container

Docker super introduction ② ~ How to start Docker ~ [For beginners]

Recommended Posts

I'll forget to look it up, so I've put together a list of frequently used Docker commands [updated from time to time]
[Personal memo] Frequently used Java grammar updated from time to time
Introduction to Docker (1) Frequently used commands
Git commands that new engineers should look back on [updated from time to time]
Summary of frequently used commands in Rails and Docker
[Eclipse] Summary of environment settings * Updated from time to time
A concise summary of Java 8 date / time APIs that are likely to be used frequently