Skip to content

Conversation

@ShaunDychko
Copy link
Owner

When developing with a web server running on the host, the browser within the container needs to access the URL that's available only within the host. Adding --net=host to the docker run command accomplishes this.

See https://docs.docker.com/v1.8/articles/networking/#container-networking for more details, including a warning that "You should use this option with caution." Should a warning like that be included here? When used in a gitlab test runner, for example, the option shouldn't be a problem, but let me know if this PR should be modified to mention that.

Something about this --net=host option should be added to the docs to save others many hours of web searching.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants