entrypoint.sh 318 B

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