Update aspnet-mssql-compose.md

This commit is contained in:
paigehargrave 2019-01-11 13:17:48 -05:00 committed by GitHub
parent 661100cce2
commit e22dff1b59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -25,8 +25,8 @@ configure this app to use our SQL Server database, and then create a
1. Create a new directory for your application. 1. Create a new directory for your application.
This directory is the context of your docker-compose project. For This directory is the context of your docker-compose project. For
[Docker for Windows](/docker-for-windows/#/shared-drives) and [Docker Desktop for Windows](/docker-for-windows/#/shared-drives) and
[Docker for Mac](/docker-for-mac/#/file-sharing), you [Docker Desktop for Mac](/docker-for-mac/#/file-sharing), you
need to set up file sharing for the volume that you need to map. need to set up file sharing for the volume that you need to map.
1. Within your directory, use the `aspnetcore-build` Docker image to generate a 1. Within your directory, use the `aspnetcore-build` Docker image to generate a
@ -37,7 +37,7 @@ configure this app to use our SQL Server database, and then create a
$ docker run -v ${PWD}:/app --workdir /app microsoft/aspnetcore-build:lts dotnet new mvc --auth Individual $ docker run -v ${PWD}:/app --workdir /app microsoft/aspnetcore-build:lts dotnet new mvc --auth Individual
``` ```
> **Note**: If running in Docker for Windows, make sure to use Powershell > **Note**: If running in Docker Desktop for Windows, make sure to use Powershell
or specify the absolute path of your app directory. or specify the absolute path of your app directory.
1. Create a `Dockerfile` within your app directory and add the following content: 1. Create a `Dockerfile` within your app directory and add the following content:
@ -170,8 +170,8 @@ configure this app to use our SQL Server database, and then create a
1. Make sure you allocate at least 2GB of memory to Docker Engine. Here is how 1. Make sure you allocate at least 2GB of memory to Docker Engine. Here is how
to do it on to do it on
[Docker for Mac](/docker-for-mac/#/advanced) and [Docker Desktop for Mac](/docker-for-mac/#/advanced) and
[Docker for Windows](/docker-for-windows/#/advanced). [Docker Desktop for Windows](/docker-for-windows/#/advanced).
This is necessary to run the SQL Server on Linux container. This is necessary to run the SQL Server on Linux container.
1. Run the `docker-compose up` command. After a few seconds, you should be able 1. Run the `docker-compose up` command. After a few seconds, you should be able