misskey-admin-scripts-n-tips/get_container_id.sh
2021-12-27 18:16:28 +00:00

6 lines
118 B
Bash
Executable file

#!/bin/bash
#
# Get container ID from name
#
docker container ls|grep "$1"|awk '{print $1}'|grep -v CONTAINER
exit $?