Skip to content

Docker compose

Install

https://docs.docker.com/compose/cli-command/#install-on-linux

apt install docker-compose-plugin

OLD

On arm

Disable autostart of docker-compose project

https://stackoverflow.com/questions/41036273/disable-autostart-of-docker-compose-project

When you find the compose.yml:

docker-compose down

To permanently kill unknown containers:

docker update --restart=no CONTAINER-ID
docker kill CONTAINER-ID

docker-compose with systemd service unit

https://philipp-weissmann.de/docker-compose_mit_systemd/ https://github.com/docker/compose/issues/4266

Issues

  • Containers can't start because a stale docker-proxy is allocating the port, even when no containers are running. Experienced with docker-compose 1.21.0-3 from buster, solved by upgrading to 1.25.0-1 from testing.

Init container