$ docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS 7a2f54c497ba Analyze:latest "/entrypoint.sh" 18 minutes ago Up 18 minutes 8137dd971ed3 Analyze:latest "/entrypoint.sh" 25 hours ago Exited (0) 25 hours ago 85522651013f Analyze:latest "/entrypoint.sh" 25 hours ago Exited (0) 25 hours ago 2ac628115aa4 Analyze:latest "/entrypoint.sh" 26 hours ago Exited (0) 26 hours ago 0bd7d1970440 Analyze:latest "/entrypoint.sh" 26 hours ago Exited (0) 26 hours ago 73479b05f1f8 nobiki/9zilla:latest "/usr/bin/supervisord" 2 weeks ago Up 2 hours 851ada8c938c jenkins:2.19.2 "/bin/tini -- /usr..." 2 weeks ago Up 2 hours 94122d817559 nobiki/9zilla-repos-git:latest "/bootstrap.sh" 2 weeks ago Up 2 hours
// Exitedを含む(普通の使い方) $ docker ps -a | grep "Exited" 8137dd971ed3 Analyze:latest "/entrypoint.sh" 25 hours ago Exited (0) 25 hours ago 85522651013f Analyze:latest "/entrypoint.sh" 25 hours ago Exited (0) 25 hours ago 2ac628115aa4 Analyze:latest "/entrypoint.sh" 26 hours ago Exited (0) 26 hours ago 0bd7d1970440 Analyze:latest "/entrypoint.sh" 26 hours ago Exited (0) 26 hours ago
// 文字列を含まない物だけに絞る(-v) $ docker ps -a | grep -v "Analyze" CONTAINER ID IMAGE COMMAND CREATED STATUS 73479b05f1f8 nobiki/9zilla:latest "/usr/bin/supervisord" 2 weeks ago Up 2 hours 851ada8c938c jenkins:2.19.2 "/bin/tini -- /usr..." 2 weeks ago Up 2 hours 94122d817559 nobiki/9zilla-repos-git:latest "/bootstrap.sh" 2 weeks ago Up 2 hours