Docker Cheatsheet

Building from dockerfile

In context of folder containing a file called Dockerfile

docker build .

Specify filename

docker build -f MyDockerfile .

Build with custom tag

docker build -f MyDockerfile -t my-service-image .

Starting and stopping

Clusters (docker-compose.yml)