這是本文件的舊版!


Docker - Basic Commands

查詢

[root@localhost ~]# docker images
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
REPOSITORY                          TAG         IMAGE ID      CREATED       SIZE
localhost/http-sample_http-service  latest      f8dec1371ce9  9 hours ago   44.4 MB
docker.io/library/nginx             alpine      529b5644c430  2 months ago  44.4 MB

查詢所有containers,包含停止的。

[root@localhost ~]# docker ps -a
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
CONTAINER ID  IMAGE                                      COMMAND               CREATED      STATUS                  PORTS               NAMES
f81f36b9cee1  docker.io/library/nginx:alpine             nginx -g daemon o...  9 hours ago  Created                 0.0.0.0:80->80/tcp  http-sample_nginx_1
621e03be78a6  localhost/http-sample_http-service:latest  nginx -g daemon o...  9 hours ago  Exited (0) 9 hours ago                      http-sample_http-service_1