Difference between revisions of "Docker"
|  (→Commands) |  (→Listing) | ||
| Line 5: | Line 5: | ||
| #*<pre>docker network list</pre> | #*<pre>docker network list</pre> | ||
| #Inspect docker container: | #Inspect docker container: | ||
| − | #*<pre>docker inspect {container id</pre> | + | #*<pre>docker inspect {container id}</pre> | 
| + | |||
| ==Starting/Stopping== | ==Starting/Stopping== | ||
| #Start docker container: | #Start docker container: | ||
Revision as of 06:44, 28 January 2025
Listing
- List All Docker Containers:
- docker ps -a 
 
- List all networks:
- docker network list 
 
- Inspect docker container:
- docker inspect {container id}
 
Starting/Stopping
- Start docker container:
- docker start {container id}
 
- Stop docker container:
- docker stop {container id}
 
- Stop All Docker Containers:
- docker stop $(docker ps -a -q) 
 
- Remove all docker cContainers:
- docker stop $(docker ps -a -q) 
 
Deleting/Cleaning
- Delete no longer needed containers:
- docker container prune 
 
- Delete no longer needed images:
- docker image prune 
 
- Delete no longer needed networks:
- docker network prune 
 
- Delete no longer needed trash:
- docker system prune 
 
