mirror of
https://github.com/nginx-proxy/docker-letsencrypt-nginx-proxy-companion
synced 2024-12-03 17:28:20 +01:00
Use CONTAINER_ID instead of HOSTNAME variable when using docker_api
This commit is contained in:
parent
b002a6bfa5
commit
86ee8793a4
@ -47,7 +47,7 @@ function get_nginx_proxy_cid {
|
||||
|
||||
function check_writable_directory {
|
||||
local dir="$1"
|
||||
docker_api "/containers/$HOSTNAME/json" | jq ".Mounts[].Destination" | grep -q "^\"$dir\"$"
|
||||
docker_api "/containers/$CONTAINER_ID/json" | jq ".Mounts[].Destination" | grep -q "^\"$dir\"$"
|
||||
if [[ $? -ne 0 ]]; then
|
||||
echo "Warning: '$dir' does not appear to be a mounted volume."
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user