How to Setup Docker Engine Containers on Windows Server Azure/AWS/GCP
To run the Docker Engine on Windows in Azure, AWS or GCP, the best way is to install the Docker Engine on Windows solution from the marketplace. It comes preinstalled with the Docker Engine Enterprise Powershell modules and packages and is fully configured as per the requirements to run Docker on Windows Server. Click on the links below to deploy into your environments
Run Docker Engine on Windows in Azure
Deploy Docker Engine on Windows 2019 in Azure
Run Docker Engine on Windows in AWS
Deploy Docker Engine on Windows 2019 on AWS
Run Docker Engine on Windows in GCP
Deploy Docker Engine on Windows 2019 on GCP
Getting Started
RDP into new server
Once you have deployed Docker Engine Enterprise on Windows server, the first step is to RDP into the new instance once it has fully booted up. The following links explain how to connect the VM once it has finished being deployed:
- How to RDP to AWS Windows Instance
- How to RDP to Google GCP Windows Instance
- How to RDP to Azure Windows Virtual Machine
Once logged in, you’re now ready to start setting up your new server as per the following sections.
Test your Docker Engine – Enterprise Windows Installation
Test your Docker Enterprise installation by running the hello-world container:
Open up a command prompt or Powershell session with elevated permissions (Run as administrator) and run the following command:
Windows Server 2019
docker run hello-world:nanoserver
Windows Server 2016
docker run hello-world:nanoserver-sac2016
The container starts, prints the hello message, and then exits.
Unable to find image 'hello-world:nanoserver' locally
nanoserver: Pulling from library/hello-world
bce2fbc256ea: Pull complete
3ac17e2e6106: Pull complete
8cac44e17f16: Pull complete
5e160e4d8db3: Pull complete
Digest: sha256:25eac12ba40f7591969085ab3fb9772e8a4307553c14ea72d0e6f98b2c8ced9d
Status: Downloaded newer image for hello-world:nanoserver
Hello from Docker!
This message shows that your installation appears to be working correctly.
Running Docker and creating containers
You should now be ready to start using Docker and creating container images.
Refer to the documentation on Docker and Microsoft websites on how to use Docker on Windows.
Note: Interactive terminals do not work in PowerShell ISE (but they do in PowerShell & Windows command prompt).
Microsoft Documentation on using Docker on Windows:
Container Base Images:
Install a container base image
Remote Management of a Windows Docker Host:
https://docs.microsoft.com/en-us/virtualization/windowscontainers/management/manage_remotehost
Support
Any questions regarding the installation of this solution, please leave a comment below or contact us and we will assist as much as we can to help you get Docker up and running in your environment.
Disclaimer
The respective trademarks mentioned in the offering are owned by the respective companies. No warrantee of any kind, express or implied, is included with this solution.
- Use at your risk, responsibility for damages (if any) to anyone resulting from the use of this solution rest entirely with the user
- The author is not responsible for any damage that its use could cause.
- Docker Enterprise (Windows Server) is available at no additional cost to all Windows Server 2019 and 2016 customers. Technical support is aligned to the Microsoft support entitlement and provided by Microsoft.