Add docker to tools
This commit is contained in:
parent
433f2b421d
commit
3551de7862
2 changed files with 10 additions and 0 deletions
|
@ -16,5 +16,6 @@
|
|||
- [Shell Tips](./ops/shelltips.md)
|
||||
- [Tools](./ops/tools/main.md)
|
||||
- [Ansible](./ops/tools/ansible.md)
|
||||
- [Docker](./ops/tools/docker.md)
|
||||
- [MongoDB](./ops/tools/mongodb.md)
|
||||
- [OpenSSL](./ops/tools/openssl.md)
|
9
src/ops/tools/docker.md
Normal file
9
src/ops/tools/docker.md
Normal file
|
@ -0,0 +1,9 @@
|
|||
# Docker
|
||||
|
||||
## Inspect
|
||||
|
||||
### Get container ip
|
||||
|
||||
```shell
|
||||
docker container inspect --format='{{range .NetworkSettings.Networks }}{{ .IPAddress }}{{ end }}' upbeat_babbage
|
||||
```
|
Loading…
Reference in a new issue