First steps to inspect 2
This commit is contained in:
parent
f553eb9767
commit
c45187a353
1 changed files with 2 additions and 2 deletions
|
@ -24,9 +24,9 @@ function inspectpod() {
|
|||
exit 1
|
||||
fi
|
||||
|
||||
echo -ne "Container-Name: $(getLocalConfValue $(getValueByKey 'PODMAN_DIRECTORY')/${1} container.name)
|
||||
echo -e "Container-Name: $(getLocalConfValue $(getValueByKey 'PODMAN_DIRECTORY')/${1} container.name)
|
||||
Network: $(getLocalConfValue $(getValueByKey 'PODMAN_DIRECTORY')/${1} network.name)
|
||||
Status:$([[ -n $(podman container ls | grep $(getLocalConfValue $(getValueByKey 'PODMAN_DIRECTORY')/${1} container.name)) ]] && ${GREEN} Running ${RESET} || ${RED} Stopped ${RESET})
|
||||
Status: $([[ -n $(podman container ls | grep $(getLocalConfValue $(getValueByKey 'PODMAN_DIRECTORY')/${1} container.name) ]] && $(echo -e '${GREEN}Running${RESET}') || $(echo -e '${RED}Stopped${RESET}'))
|
||||
Uptime: ${GREEN}$(podman container ls | grep ${1} | awk '{$1=$1};1' | cut -d' ' -f 7-8)${RESET}"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue