A WIP collection of docker commands for maintaining services running on subdomains and limited disk space while I experiment. I still don’t know what docker really is.
container cleanup
Source: https://docs.docker.com/engine/manage-resources/pruning/
clean up all images that don’t have at least one container associated with them
clean up all stopped docker containers
clean up all anonymous docker volumes not used by at least one container
clean up all custom docker networks not used by at least one container
all of the above (just use this command)
information
break down container usage (-v
for more info)
another way to show disk usage
show running containers (-a
flag shows all running containers)
another way to show containers
logs
start with last 10 log entries and follow log output (think tail -f
)
script to update docker containers
crontab file
- must be run as root