Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use host.docker.internal instead of local IP address in chrome.docker #474

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jamiepenney
Copy link

Resolves #473

Fixes an issue where the Chrome docker container cannot access Storybook running on the host machine via IP address, instead using the Docker host.docker.internal DNS entry to get access to it.

I'm not 100% convinced this is the right approach, but I wanted to put it out there as a solution to my problem. Is there a scenario where using host.docker.internal for accessing the host from the docker container won't work?

Resolves oblador#473

Fixes an issue where the Chrome docker container cannot access Storybook running on the host machine via IP address, instead using the Docker `host.docker.internal` DNS entry to get access to it.
@jamiepenney jamiepenney force-pushed the bugfix/473-fix-chrome-docker-host-access branch from 65129bc to 2e8e084 Compare January 8, 2024 21:39
@patrik909
Copy link

This also works for me on 0.34.0! Would be great to have this merged :)

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.

Failed to load stories in chrome.docker, loki version 0.32.0
2 participants