The Docker Book
Common tasks with docker and docker-compose
How to create a container
$ docker create <image-name>How to start a container
$ docker start -a <container-id>
$ docker start --attach <container-id>How to run a container
$ docker run <image-name>
$ docker run <image-name> <alternate-startup-command>
$ docker run --detach <image-name>How to list all containers
How to delete all containers
How to get logs from a running container
How to terminate a container
How to run multiple container commands
How to get shell access to a container
How to build a custom image from a Dockerfile
How to build a tagged image from a container
How to run a custom server in a docker container
How to delete all Docker images that have been downloaded
Docker-compose commands
How to run an application composed of multiple docker containers
How to specify a restart policy for your docker container

How to sync local frontend changes with Docker
How to sync local frontend changes with Docker Compose
How to sync local backend changes with Docker Compose
How to create a container using a multi-step approach
How to deploy code changes to GitHub and test pull requests on TravisCI
How to get container id via image name
Last updated