update-motd.d/40-docker aktualisiert
This commit is contained in:
parent
dd67ef13cf
commit
d9dffd1303
1 changed files with 10 additions and 2 deletions
|
|
@ -1,4 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo ""
|
||||
docker ps --format "table {{.Names}}\t{{.Status}}\t{{.RunningFor}}"
|
||||
CB="\e[1;34m"
|
||||
NC='\033[0m' # No Color
|
||||
|
||||
echo -e ""
|
||||
echo -e "${CB}docker container:${NC}"
|
||||
echo -e ""
|
||||
|
||||
docker ps --format "table {{.Names}}\t{{.Status}}\t{{.RunningFor}}" | while read -r line; do
|
||||
echo " $line"
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue