Last active
August 27, 2021 20:02
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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