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