This is an old revision of the document!
Docker needs daily or at least weekly maintenance with the help of the following command:
docker system prune -f
You should probably put that one on a systemd timer just in case.
docker image prune -a
docker system df
docker ps -a
docker ps --format "table {{.Names}}\t{{.Status}}\t \ {{.Networks}}\t{{.Ports}}\t{{.Size}}"
docker logs -f container_name
docker network inspect network_name
docker container inspect container_name
docker network ls
docker network prune
docker attach mybb_mybb_1
docker history mybb/mybb:latest
docker exec -it mybb_mybb_1 /bin/sh
Stopping containers with specific name
docker container stop $(docker container ls -q --filter name=myapp*)
dtags () { local image="${1}" wget -q https://registry.hub.docker.com/v1/repositories/"${image}"/tags -O - \ | tr -d '[]" ' | tr '}' '\n' | awk -F: '{print $3}' }
docker search ruby --filter="is-official=true"