Skip to content

Commit 80b2316

Browse files
committed
Update: 杂记.md
1 parent aad225f commit 80b2316

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

post/杂记.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,16 @@ git config --global core.eol lf
5757
git config --global core.autocrlf input
5858
```
5959

60+
### 5. docker 看所有容器 ip
61+
62+
```shell
63+
docker ps --format "{{.Names}} {{.Image}}" | while read container_name image; do container_ip=$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $container_name); echo "$container_name $image $container_ip"; done
64+
```
65+
66+
<<<<<<< HEAD
67+
=======
68+
69+
>>>>>>> ba874a30577594db095b48bc73c4ff8ec28111d5
6070
## 2. archlinux 相关
6171

6272
### 1. nvidia,nvidia-open 驱动都无法调用显卡

0 commit comments

Comments
 (0)