[Starlingx-discuss] How to get the list of running docker container ?

Sun, Austin austin.sun at intel.com
Wed Sep 23 14:32:03 UTC 2020


please try 'crictl ps' command .

From: Rai, Ankush <Ankush.Rai at commscope.com>
Sent: Wednesday, September 23, 2020 10:19 PM
To: starlingx-discuss at lists.starlingx.io
Subject: [Starlingx-discuss] How to get the list of running docker container ?

Running "docker ps" as a sysadmin does not list the running containers. Any reference how to get the list of running container ?

sysadmin# docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
controller-1:/home/sysadmin# docker info
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: 18.09.6
Storage Driver: overlay2

(keystone_admin)]$ docker ps
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.39/containers/json: dial unix /var/run/docker.sock: connect: permission denied


(keystone_admin)]$ system host-list
+----+--------------+-------------+----------------+-------------+--------------+
| id | hostname     | personality | administrative | operational | availability |
+----+--------------+-------------+----------------+-------------+--------------+
| 1  | controller-0 | controller  | unlocked       | enabled     | available    |
| 2  | controller-1 | controller  | unlocked       | enabled     | available    |
+----+--------------+-------------+----------------+-------------+--------------+

(keystone_admin)]$ system application-list
+--------------------------+---------+-----------------------------------+----------------------------------------+----------+-----------+
| application              | version | manifest name                     | manifest file                          | status   | progress  |
+--------------------------+---------+-----------------------------------+----------------------------------------+----------+-----------+
| cert-manager             | 1.0-5   | cert-manager-manifest             | certmanager-manifest.yaml              | applied  | completed |
| nginx-ingress-controller | 1.0-0   | nginx-ingress-controller-manifest | nginx_ingress_controller_manifest.yaml | applied  | completed |
| oidc-auth-apps           | 1.0-27  | oidc-auth-manifest                | manifest.yaml                          | uploaded | completed |
| platform-integ-apps      | 1.0-9   | platform-integration-manifest     | manifest.yaml                          | applied  | completed |
+--------------------------+---------+-----------------------------------+----------------------------------------+----------+-----------+

Thanks,
Ankush

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.starlingx.io/pipermail/starlingx-discuss/attachments/20200923/5f19198e/attachment-0001.html>


More information about the Starlingx-discuss mailing list