Skip to content

Commit ba874a3

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

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

post/杂记.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,13 @@ 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+
6067
## 2. archlinux 相关
6168

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

0 commit comments

Comments
 (0)