mirror of
https://github.com/bvanroll/_dotfiles.git
synced 2025-09-02 05:52:48 +00:00
9 lines
254 B
Bash
Executable File
9 lines
254 B
Bash
Executable File
#!/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"
|