Editing Docker ps

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
{{lowercase}}
+
{{Draft}}
<code>docker ps</code> list containers
 
* https://docs.docker.com/engine/reference/commandline/ps/
 
  
docker ps
+
<code>docker ps</code>
docker ps -a
 
docker ps -a [[-f]]=name=[[etcd]]$
 
[[docker ps -q]]
 
[[docker ps --size]]
 
<nowiki>docker ps -a --format '{{ .ID }}'</nowiki>
 
 
 
== Examples ==
 
docker ps
 
 
  CONTAINER ID        IMAGE                          COMMAND            CREATED            STATUS                            PORTS                                                                                    NAMES
 
  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:  
+
  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
 
  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
  
  
  
* <code>[[docker ps -a]]</code>
+
<code>docker ps -a</code>
* <code>docker ps -a -q</code>
 
[[docker ps -aq]]
 
 
 
  
docker ps
 
Cannot connect to the Docker daemon at unix://[[/var/run/docker.sock]]. Is the docker daemon running?
 
  
 
  docker ps
 
  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
+
  Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
unix [[/var/run/docker.sock]]: connect: permission denied
 
 
Solution: <code>[[sudo docker ps]]</code>
 
 
 
docker ps
 
bash: /usr/local/bin/docker: No such file or directory
 
 
 
docker ps
 
bash: docker: command not found
 
  
 
== Related commands ==
 
== Related commands ==
 +
* <code>[[docker-compose ps]]</code>
 
* <code>[[docker start]]</code>
 
* <code>[[docker start]]</code>
* <code>[[systemctl status docker]]</code>
+
* [[systemctl status docker]]
* <code>[[journalctl -u docker]]</code>
 
* <code>[[docker inspect]]</code>
 
* <code>[[ps]]</code>
 
 
 
* <code>[[docker-compose ps]]</code>
 
* <code>[[docker container stop $(docker container ls -aq)]]</code>
 
* <code>[[docker logs]]</code>
 
  
 
== See also ==
 
== See also ==
* {{docker ps}}
+
* {{docker}}
* {{ps}}
 
  
 
[[Category:Docker]]
 
[[Category:Docker]]

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Templates used on this page:

Advertising: