Skip to content

Commit 86ee879

Browse files
committed
Use CONTAINER_ID instead of HOSTNAME variable when using docker_api
1 parent b002a6b commit 86ee879

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function get_nginx_proxy_cid {
4747

4848
function check_writable_directory {
4949
local dir="$1"
50-
docker_api "/containers/$HOSTNAME/json" | jq ".Mounts[].Destination" | grep -q "^\"$dir\"$"
50+
docker_api "/containers/$CONTAINER_ID/json" | jq ".Mounts[].Destination" | grep -q "^\"$dir\"$"
5151
if [[ $? -ne 0 ]]; then
5252
echo "Warning: '$dir' does not appear to be a mounted volume."
5353
fi

0 commit comments

Comments
 (0)