Set SDB_NOTIFY_HOST for all processes

This commit is contained in:
Shane McDonald
2020-11-17 13:40:45 -05:00
committed by Shane McDonald
parent f1df4c54f8
commit 81f6d36a3a
2 changed files with 6 additions and 9 deletions

View File

@@ -21,4 +21,10 @@ fi
# writing out the sub*id files above
podman system migrate
if [[ "$OS" == *"Docker Desktop"* ]]; then
export SDB_NOTIFY_HOST='docker.for.mac.host.internal'
else
export SDB_NOTIFY_HOST=$(ip route | head -n1 | awk '{print $3}')
fi
exec $@