# show running containers
docker ps
# show running and stopped containers
docker ps -a
# adding q make it quiter :o)
docker ps -q
docker ps -q -a
# Now show only the stopped container
diff <(docker ps -a -q) <(docker ps -q )
This shows difference between the two commands and
in this case the difference is stopped containers.
docker ps
# show running and stopped containers
docker ps -a
# adding q make it quiter :o)
docker ps -q
docker ps -q -a
# Now show only the stopped container
diff <(docker ps -a -q) <(docker ps -q )
This shows difference between the two commands and
in this case the difference is stopped containers.
No comments:
Post a Comment