docker Command Examples

Manage Docker containers and images. Some subcommands such as run have their own usage documentation. More information: https://docs.docker.com/reference/cli/docker/.

docker ps --all

docker run --name {{container_name}} {{image}}

docker {{start|stop}} {{container_name}}

docker pull {{image}}

docker images

docker exec -it {{container_name}} {{sh}}

docker rm {{container_name}}

docker logs -f {{container_name}}