Docker: Difference between revisions
From DWIKI
m (→Docs) |
m (→FAQ) |
||
Line 22: | Line 22: | ||
docker network ls | docker network ls | ||
docker network inspect | docker network inspect | ||
==image has dependent child images== | |||
docker inspect --format='{{.Id}} {{.Parent}}' $(docker images --filter since=<image_id> -q) | |||
==image is being used by stopped container xyz== | |||
docker rm xyz | |||
and try again | |||
Revision as of 12:50, 10 May 2019
Links
Docs
- Docker-compose
- https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-centos-7
- Docker for beginners
- Docker networking
FAQ
List running containers
docker ps
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)
image is being used by stopped container xyz
docker rm xyz
and try again