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

Feature Request: Local DNS server option #2721

Open
tcldr opened this issue Mar 24, 2018 · 3 comments

Comments

@tcldr
Copy link

commented Mar 24, 2018

Feature Request

This is related to #155 but takes the proposal a step further

I'm using docker to provide my local development environments. Currently, remembering and assigning ports for the various environments requires a bit of juggling and is a bit of a pain. What I'd like to be able to do is have a simple mechanism for assigning a .test domain name to a particular project.

It would be great if Docker for Mac facilitated this. Obviously it would need to be done in such a way that doesn't interfere with existing features.

I expect this would require running an additional container with a dns server and then rerouting host dns queries to it – but anything that works is fine by me.

How I imagine this could work user experience wise:

  1. User creates docker compose project. As usual, a network is assigned – either my_app_default or another user-defined name.
  2. A new docker specific 'hosts' file (or ideally, a preferences panel within the Docker for Mac app) allows for the mapping of project name to domain name. i.e *.my_app_default.test points to my_app_default.
  3. User can now access containers via domain name. i.e. www.my_app_default.test points to the container named www in the my_app_default docker network, or db.my_app_default.test points to... you get the idea!

@hysryt hysryt referenced this issue Jul 25, 2018

Open

Docker #65

@docker-desktop-robot

This comment has been minimized.

Copy link
Collaborator

commented Jul 30, 2018

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale comment.
Stale issues will be closed after an additional 30d of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle stale

@tcldr

This comment has been minimized.

Copy link
Author

commented Jul 30, 2018

/lifecycle frozen

@tcldr

This comment has been minimized.

Copy link
Author

commented Jul 30, 2018

/remove-lifecycle stale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.