Skip to content

Conversation

@thecloudtaylor
Copy link

Changing from server core to nano - this speeds up build, run and download times.

friism and others added 2 commits October 9, 2016 14:12
Changing from server core to nano - this speeds up build, run and download times.
environment:
sa_password: "Password1"
ports:
- "1433:1433" # for debug. Remove this for production

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does it help to debug? You can't connect to the port from the host machine.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dermeister0 yeah you can - depending on the configuration, it's available on either the IP address of the container or the host.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The DB is available on the container IP even if the 'ports' directive is missing.
If port mapping is used, you can connect to the host from other machine, but not from localhost.
https://blogs.technet.microsoft.com/virtualization/2016/05/25/windows-nat-winnat-capabilities-and-limitations/

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.

4 participants