Docker: Difference between revisions

From DWIKI
Line 13: Line 13:
==List running containers==
==List running containers==
  docker ps
  docker ps
==List containers==
docker ps -a


==Get shell in running container==
==Get shell in running container==

Revision as of 16:00, 15 October 2019

Links


Docs

FAQ

List running containers

docker ps

List containers

docker ps -a

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