Docker Cheat Sheet |
Command | Description |
---|---|
docker ps |
List running containers |
docker images |
List locally available images |
docker run [--name <container_name>] [-v <host_dir>:<mount_point>] [-P | -p <host_port>:<container_port>] <image_name> <command> |
Run a command in a new container based on an image |
docker create <image_name> --name=<container_name> |
Create a container of name container_name and is based off image_name |
docker pull <image_name> |
Retrieve an image from to the repo to local |