Docker Compose Cheat Sheet



Docker-compose down. This stops all containers gracefully, and once all are stopped, it removes them. Any networks created by up are also removed. Use -v to remove volumes. To list containers: docker-compose ps. You can list the names of the services instead with the -services option. Use -a to include stopped containers. To build images: docker-compose build. Docker-compose up is used to start a project. It tries to automate a series of operations including building a mirror, (re)creating a service, starting a service, and associating a service-related container. Sometimes you will need docker-compose up -rebuild after making code changes.

docker daemon

Enable buildkit

Add to /etc/docker/daemon.json:

docker-compose

Devices

Labels

External Network

Dockerfile

Docker Stop Signal

imagemagick

vim

path update

download & extract tar.gz

gpg dirmgr explained

purge

list what exposed ports do

cassandra

gosu

debian

copy with proper permissions

su-exec

setgid

npm

gosu

tini

node

redis

Docker compose tutorial

docker

google cloud sdk

kubectl

pip

locale

tomcat

https://github.com/Unidata/tomcat-docker/blob/master/Dockerfile

gosu tomcat

Secure repository setup

create application folder structure

Download and clean up in one layer

Package Manager tricks

Docker Compose Cheat Sheet

Metadata

Make sure to add ARG statements as late as possible to not invalidate the layer cache needlessly.Each ARG will be prepended to all subsequent RUN statements, i.e. Robertshaw 7000mvrlc manual. building an image with the following Dockerfile docker --pull --tag foo:latest --build-arg GIT_COMMIT=46e24af6 --build-arg USERNAME=flask .

Docker Commands List

Effectively results in the following calls:

Docker Cheat Sheet Pdf

Docker compose 3 cheat sheet

Docker Compose Command Line

Since the git commit hash will typically change with each build the build will not make good use of Docker’s layer cache

Python

Docker Commands Pdf

Golang