Docker: Difference between revisions

From DWIKI
Line 6: Line 6:
*[https://docs.docker.com/compose Docker-compose]
*[https://docs.docker.com/compose Docker-compose]
*https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-centos-7
*https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-centos-7
*[https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes Removing images, containers and volumes]
*[https://training.play-with-docker.com/beginner-linux/ Docker for beginners]
*[https://training.play-with-docker.com/beginner-linux/ Docker for beginners]
*[https://runnable.com/docker/basic-docker-networking Docker networking]
*[https://runnable.com/docker/basic-docker-networking Docker networking]

Revision as of 15:13, 10 May 2019

Links


Docs

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)

list dangling images

docker images -f dangling=true

image is being used by stopped container xyz

docker rm xyz

and try again


Backups