Updated 04. Setting eShopOnContainer solution up in a Mac, VS for Mac or with CLI environment (dotnet CLI, Docker CLI and VS Code) (markdown)

Cesar De la Torre 2017-10-25 16:21:59 -07:00
parent 9fd5c0d82b
commit 5bdfb37e2f

@ -270,6 +270,14 @@ You can also try/test the SPA (Single Page Application), which is based on Angul
If you don't configure these further settings, you should get the following error when trying to login in the MVC or SPA apps. If you don't configure these further settings, you should get the following error when trying to login in the MVC or SPA apps.
![image](https://user-images.githubusercontent.com/1712635/32027668-23d2c4b2-b99f-11e7-8e00-b26d553645bf.png)
That is because the by default IP used to redirect to the Identity service/app used by the application (based on IdentityServer4) is the IP 10.0.75.1.
That IP is always set up when installing Docker for Windows in a Windows 10 machine. It is also used by Windows Server 2016 when using Windows Containers.
eShopOnContainers uses that IP as the "by default choice" so anyone testing the app don't need to configure further settings. However, that IP is not used by "Docker for Mac", so you need to change the config.
If you were to access the Docker containers from remote machines or mobile phones, like when using the Xamarin app or the web apps in remote PCs, then you would also need to change that IP and use a real IP from the network adapter, like you always need to do when using a Mac.
## Setting up the docker-compose file environment variables and settings ## Setting up the docker-compose file environment variables and settings
The Mac has a changing IP address (or none if you have no network access). From 17.06 onwards our recommendation is to connect to the special Mac-only DNS name docker.for.mac.localhost which will resolve to the internal IP address used by the host. The Mac has a changing IP address (or none if you have no network access). From 17.06 onwards our recommendation is to connect to the special Mac-only DNS name docker.for.mac.localhost which will resolve to the internal IP address used by the host.