Browse Source

Add docker to tools

master
Wilfried OLLIVIER 7 months ago
parent
commit
3551de7862
2 changed files with 10 additions and 0 deletions
  1. 1
    0
      src/SUMMARY.md
  2. 9
    0
      src/ops/tools/docker.md

+ 1
- 0
src/SUMMARY.md View File

@@ -16,5 +16,6 @@
16 16
     - [Shell Tips](./ops/shelltips.md)
17 17
     - [Tools](./ops/tools/main.md)
18 18
         - [Ansible](./ops/tools/ansible.md)
19
+        - [Docker](./ops/tools/docker.md)
19 20
         - [MongoDB](./ops/tools/mongodb.md)
20 21
         - [OpenSSL](./ops/tools/openssl.md)

+ 9
- 0
src/ops/tools/docker.md View File

@@ -0,0 +1,9 @@
1
+# Docker
2
+
3
+## Inspect
4
+
5
+### Get container ip
6
+
7
+```shell
8
+docker container inspect --format='{{range .NetworkSettings.Networks }}{{ .IPAddress }}{{ end }}' upbeat_babbage
9
+```

Loading…
Cancel
Save