Update dockcheck_function.sh

This commit is contained in:
mag37 2023-01-18 20:55:51 +01:00 committed by GitHub
parent 0f14b123ef
commit 83eb5505a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,12 @@
### Requires the regctl binary, either in PATH or as an alias ### Requires the regctl binary, either in PATH or as an alias
### Get it here: https://github.com/regclient/regclient/releases ### Get it here: https://github.com/regclient/regclient/releases
### Preferably placed in .bashrc or similar
### if regctl is not in PATH, set the alias:
alias regctl="/path/to/regctl" alias regctl="/path/to/regctl"
dockcheck () { dockcheck () {
if [[ -z "$1" ]]; then if [[ -z "$1" ]]; then
echo "No container name given, here's the list of currently running containers:" echo "No container name given, here's the list of currently running containers:"