NOTE: Most of the contents of this repository have been migrated to the new devcontainers GitHub org (https://github.com/devcontainers). See https://github.com/devcontainers/template-starter and https://github.com/devcontainers/feature-starter for information on creating your own!
(for reference this is done so that later when I spin up my app with docker-compose I can attach it to the same network using the external configuration which allows port forwards to work correctly within my WSL instance)
start up the dev container
within the dev container from bash run curl google.com
returns could not resolve hostname
if you comment out the name config above and run everything again you get a valid response
Steps to Reproduce:
docker-compose.yml
for the dev container add this to theapp
service:and add this at the bottom of the file:
(for reference this is done so that later when I spin up my app with docker-compose I can attach it to the same network using the
external
configuration which allows port forwards to work correctly within my WSL instance)curl google.com
name
config above and run everything again you get a valid response