new option docker-status --stop to stop (end therefore restart) a container

master
Marc Wäckerlin 6 years ago
commit 39441c5343
  1. 6
      docker-status

@ -1,9 +1,6 @@
#!/bin/bash -e
############################################################################ begin logging
# check if stdout is a terminal...
if test -t 1; then
# see if it supports colors...
ncolors=$(tput colors)
@ -21,7 +18,6 @@ if test -t 1; then
cyan="$(tput setaf 6)"
white="$(tput setaf 7)"
fi
fi
append_msg() {
if test $# -ne 0; then
@ -174,7 +170,7 @@ services=$(for stack in ${stacks}; do
"
for service in ${status}; do
time=${service%%;*}
echo "$(date -d "$(sed 's,about an* ,1 ,;s,less than an* ,0 ,' <<<${time})");${service#*;}"
echo "$(date +%s -d "$(sed 's,about an* ,1 ,;s,less than an* ,0 ,' <<<${time})");${service#*;}"
done
done | sort -hr)

Loading…
Cancel
Save