Difference between revisions of "Docker ps"

From wikieduonline
Jump to navigation Jump to search
Line 33: Line 33:
  
 
== See also ==
 
== See also ==
 +
* {{ps}}
 
* {{docker}}
 
* {{docker}}
  
 
[[Category:Docker]]
 
[[Category:Docker]]

Revision as of 17:35, 27 July 2021

docker ps list containers


Examples

docker ps
CONTAINER ID        IMAGE                          COMMAND             CREATED             STATUS                             PORTS                                                                                    NAMES
b505ff9b5560        gitlab/gitlab-ee:11.3.1-ee.0   "/assets/wrapper"   6 days ago          Up 25 seconds (health: 
starting)   0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp, 0.0.0.0:5001->5001/tcp, 0.0.0.0:2224->22/tcp   gitlab-web



docker ps
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
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.40/containers/json: dial 
unix /var/run/docker.sock: connect: permission denied
Solution: sudo docker ps

Related commands

See also

Advertising: