You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 13, 2025. It is now read-only.
Repository navigation
03a. Running Locally on a Linux Container from Visual Studio
Right click on the Web project in Visual Studio and select the Add menu then Docker Support
Select Linux and click on OK. This will create a new project in your solution called docker-compose. This project contains the settings for deploying to Docker.
Open the docker-compose.override.yml from the docker-compose project and change the line that reads 80 to read 5106. This is the port eShopOnWeb is configured to run on. (See the Program.cs file for details)
Press F5 to run the project or select Debug > Start Debugging from the menu.
Your default browser will start on a random port on localhost which is forwarded to the docker container.
Troubleshooting
You may encounter an error if your Docker for Windows is configured to run Windows containers. This setting change be changed by right clicking on the tray icon and selecting Switch to Linux containers