Skip to content

Commit ef9bc04

Browse files
authored
Update README.md
1 parent 7688364 commit ef9bc04

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

docker/README.md

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,23 @@
2323

2424
#introduction
2525

26+
### Container cheat sheet
27+
| Container Command | Command description |
28+
| --------------- | --------------- |
29+
|```docker ps```|Running containers list |
30+
|```docker exec -it <container name> /bin/sh```| SSH access inside container |
31+
|```docker create <image_name>```| Connect a container to a network |
32+
|```docker network prune```| Remove all unused networks |
33+
|```docker network rm```| Remove one or more networks |
2634

27-
### Networking cheat sheet
2835

29-
| Networking Command | Networking Description |
36+
### Networking cheat sheet
37+
| (__Networking Command__) | (**Networking Description**) |
3038
| --------------- | --------------- |
31-
| docker network ls | List networks |
32-
| docker network create | Create a network |
33-
| docker network connect | Connect a container to a network |
34-
| docker network prune | Remove all unused networks |
35-
|docker network rm | Remove one or more networks |
39+
|```docker network ls``` | List networks |
40+
|```docker network create``` | Create a network |
41+
|```docker network connect``` | Connect a container to a network |
42+
|```docker network disconnect```| Dic connect docker network |
43+
|```docker network inspect```| See network info details |
44+
|```docker network prune``` | Remove all unused networks |
45+
|```docker network rm``` | Remove one or more networks |

0 commit comments

Comments
 (0)