quoting, added env-file check.
This commit is contained in:
mag37 2023-03-05 21:13:23 +01:00
parent 5e58abd8e9
commit 9b6396f6de

View File

@ -18,9 +18,10 @@ for i in $(docker ps --filter "name=$SearchName" --format '{{.Names}}') ; do
echo -e "Service name:\t\t$ContName" echo -e "Service name:\t\t$ContName"
echo -e "Project working dir:\t$ContPath" echo -e "Project working dir:\t$ContPath"
echo -e "Compose files:\t\t$ComposeFile" echo -e "Compose files:\t\t$ComposeFile"
echo -e "Environment files:\t$ContEnv"
echo -e "Container image:\t$ContImage" echo -e "Container image:\t$ContImage"
echo echo
echo "Mounts:" echo "Mounts:"
docker inspect -f '{{ range .Mounts }}{{ .Source }}:{{ .Destination }}{{ printf "\n" }}{{ end }}' $i docker inspect -f '{{ range .Mounts }}{{ .Source }}:{{ .Destination }}{{ printf "\n" }}{{ end }}' "$i"
echo echo
done done