Skip to content

Commit

Permalink
docker: add LABEL support
Browse files Browse the repository at this point in the history
  • Loading branch information
kb100 committed Dec 7, 2018
1 parent be3f4ae commit 7542025
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Show the number of running `Docker` containers and latest created container IP a
```
[docker]
command=$SCRIPT_DIR/docker
label=🐳
color=#0db7ed
interval=10
LABEL=🐳
```
2 changes: 1 addition & 1 deletion docker/docker
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ 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 "$count: $recent_ip"
echo "$LABEL$count: $recent_ip"
2 changes: 1 addition & 1 deletion docker/i3blocks.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[docker]
command=$SCRIPT_DIR/docker
label=🐳
color=#0db7ed
interval=10
LABEL=🐳

0 comments on commit 7542025

Please sign in to comment.