Environment preparation
1. Amazon EC2 Windows Server with Container
2. Visual Studio Enterprise (profresianal to install update 3)
3.. NET Core 1.0.0–vs Tooling Preview 2. Please click here to install
4. Microsoft. NET Core SDK, can download and install to Microsoft Official website
Experimental steps
First, Docker environment preparation
Amazon EC2 Windows Server with container has built-in Docker, as follows:
Click Search in the lower left corner of Windows-"Enter Server Manager",
On dashboard Right click Add Role or Featurn
This is not the same as the previous server, roles and features are added together. Here is the next step, found that Hyper-V in roles is not enabled, many people say to enable, here I do not enable
There's a container in features, and this is Docker.
Verify that Docker is installed, under CMD under the bridge below the following command to verify:
Docker info can be identified and executed, indicating that Docker has been installed successfully.
Running the ASP. NET Core Web API application in Docker (with AWS Windows Server Widt container actual case)