Run container locally

From the root Northwind project folder where you have placed Dockerfile, run the following command to build the image locally:

docker image build --tag northwind:latest .

As your application now uses AWS Systems Manager Parameter Store to store connection strings, you need to provide to container information on how to access it.

Mac users

On Mac you can use the following command to pass the AWS credentials stored on you computer to the container:

docker run -v ${HOME}/.aws/credentials:/root/.aws/credentials:ro -p 5106:80 northwind

Windows users

On Windows other option is to pass your AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY as environmental variables:

docker run -p 5106:80 -e AWS_ACCESS_KEY_ID="XXX" -e AWS_SECRET_ACCESS_KEY="YYY" -e AWS_DEFAULT_REGION="eu-west-1" northwind

Please provide correct region. On Lab VM you can find access key in the credentials file under C:\Users\Administrator\.aws folder.

Using provided remote VM

You should use private IP of the Docker daemon in order to access the application:

Linux private IP

Browse to access the application.

Using your own computer

Once container is up and running, you can browse http://localhost:5106/ to access the application.

Once application will be running on AWS, you will use IAM Roles in order to give container permissions to read parameters from AWS Systems Manager Parameter Store.