← Back to feed
Renewal·마흔의 생활코딩

Docker at forty) basic command log (-ing)

NS
normalstory
cover image

 

docker basic commands

List all containers (virtualized machines)> $docker ps -a -q

Stop all containers (virtualized machines)> $docker stop $(docker ps -a -q)

Remove all containers (virtualized machines)> $docker rm $(docker ps -a -q)

 

Check installed virtualization (tool) images> docker images

Check images that have been built> $docker images

Remove built images> $docker rmi $(docker images -q) -f

docker rmi -f $(docker images dev-* -q)

 

docker exec cliMagnetoCorp peer chaincode list --instantiated -C mychannel

List Docker networks> $docker network list

Inspect configuration of a Docker network> $docker network inspect {name from network list}

 

Check directory structure (3 levels deep) > $tree -L 3 commercial-paper

 

This English version was translated by Claude.

친절한 찰쓰씨
Written by
친절한 찰쓰씨

Pleasant Charles — UI/UX researcher at AIT. Keeping notes on design, planning, and slow days here since 2010.