1234567891011 |
- #!/bin/sh
- set -e
- # potential alternatives: host.docker.internal, host.containers.internal
- # docker v20.10.0 https://github.com/moby/moby/pull/40007
- # podman v3.2.0 https://github.com/containers/podman/pull/9972
- export DOCKER_HOST_ADDRESS="$(ip route show default | grep default | cut -d ' ' -f 3)"
- set -x
- exec "$@"
|