Docker
Docker commands
-
docker system prune
- Remove unused data. Useful when docker eats all available disk space on our computer. Pass the--all
argument to delete all unused images, not just dangling images.bash docker system prune --all
Container init programs
runit
- A UNIX init scheme with service supervision. (Source Code)C
tini
- A tiny but valid init for containers. Used by conda-forge. Probably the best choice.C
s6
- The s6 supervision suite. (Source Code)C
supervisor
- Does not pick up zombie processes.Python
Docker machine
- In order to log in to one of the worker machines, use ssh certificates from the
/root/.docker/machine/machines
folder.
Troubleshooting
Docker does not correctly detect the MTU (maximum transfer unit) of the container. It must be specified manually in the /lib/systemd/system/docker.service
file:
ExecStart=/usr/bin/docker daemon -H fd:// –mtu=1400
Additional resources
- Automated Nginx Reverse Proxy for Docker
- nginx-proxy
- Automated nginx proxy for Docker containers using docker-gen
- Docker image: https://hub.docker.com/r/jwilder/nginx-proxy/
- docker-gen
- Generate files from docker container meta-data