Docker Commands

Summary of Docker Commands

Organizing because I keep forgetting...

Create container

docker container create [options] [image name] [command] [parameters] 

Run container

docker container run [options] [image name] [command] [parameters]
  • -d : runs on background

Start container

docker container start [container name]
  • Change start to restart for restart

Stop container

Pause container

Unpause container

Remove container

Check the log

  • realtime : add -f after -t!

Check container stats

Check process status

Connect to container

List images

or

Remove image(s)

  • For IMAGE, write the IMAGE ID found with the docker image ls command

Docker system prune

Let's delete unused data

Last updated