Builder
Build an image | docker buildx build {dockerfile-path} |
Images
Pull an image (from remote) | docker image pull {image-path} |
Push an image (to remote) | docker image push {image-path} |
List the images | docker image ls |
Remove an image | docker image rm {image} |
Containers
List the containers | docker container ls -a |
Create and start a container | docker container run {image} |
Start, pause or stop a container | docker container start|pause|stop {image} |
Remove a container | docker container rm {container} |
▼ More …
Exec cmd in newly started container | docker container run -it {image} {cmd} |
Exec cmd in already running container | docker container exec -it {container} {cmd} |
Other
Remove all data | docker system prune -a |