Skip to content

Instantly share code, notes, and snippets.

@j-tim
Last active August 27, 2021 20:02
Show Gist options
  • Save j-tim/cc9fd86ba1c51ae93efa830b7cd0e0ca to your computer and use it in GitHub Desktop.
Save j-tim/cc9fd86ba1c51ae93efa830b7cd0e0ca to your computer and use it in GitHub Desktop.
Example Docker compose file with extra host config to reach the Docker host from inside a running Docker container
version: "3.8"
services:
ubuntu:
image: ubuntu
container_name: ubuntu
extra_hosts:
- "host.docker.internal:host-gateway"
command: sleep infinity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment