Docker
From DWIKI
Links
Docs
- Docker-compose
- https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-centos-7
- Removing images, containers and volumes
- Docker for beginners
- Docker networking
HOWTO
List running containers
docker ps
List containers
docker ps -a
List images
docker images
Get shell in running container
To get image name
docker ps
then
docker exec -it <image-id> bash
Network
docker network ls docker network inspect
image has dependent child images
docker inspect --format='Template:.Id Template:.Parent' $(docker images --filter since=<image_id> -q)
list dangling images
docker images -f dangling=true
Remove dangling image
docker rmi image-id
image is being used by stopped container xyz
docker rm xyz
and try again