Skip to content

Commit d2f7a26

Browse files
committedApr 17, 2025·
Update: 杂记.md
1 parent aad225f commit d2f7a26

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎post/杂记.md

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

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

0 commit comments

Comments
 (0)
Please sign in to comment.