pi@pi01:~ $ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES pi@pi01:~ $ docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES f2c42ac83469 arm64v8/alpine "/bin/sh" 52 minutes ago Exited (159) 33 minutes ago frosty_chaum
I clearly have one container, but it seems it’s NOT running? And if I want to pop up
/bin/sh in this container, I got an error:
pi@pi01:~ $ docker exec -it f2c42ac83469 /bin/sh Error response from daemon: Container f2c42ac834698ca2a60d9dd9fa17e5284f2fbdf59a11e9b819efa8f28b37f107 is not running
Can anybody help to explain what are the differences between docker ps and docker ps -a?