This commit is contained in:
2024-06-12 13:49:42 +02:00
commit b8e15ff09c
390 changed files with 37206 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
# docker
Show the number of running `Docker` containers and latest created container IP address.
![](docker.jpg)
# Dependencies
*docker*
# Config
```
[docker]
command=$SCRIPT_DIR/docker
color=#0db7ed
interval=10
LABEL=🐳
```

8
.config/i3blocks/docker/docker Executable file
View File

@@ -0,0 +1,8 @@
#!/usr/bin/env bash
# Number of docker containers running
count=$(docker ps -q | wc -l | sed -r 's/^0$//g')
# Recent docker container IP
recent_ip=$(docker inspect -f "{{ .NetworkSettings.IPAddress }}" $(docker ps -ql))
echo "$LABEL$count: $recent_ip"

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

@@ -0,0 +1,5 @@
[docker]
command=$SCRIPT_DIR/docker
color=#0db7ed
interval=10
LABEL=🐳