Code Monkey home page Code Monkey logo

docker-windows-azure's Introduction

docker-windows-azure

Windows Server 2019 LTS channel

Windows Server 2016 LTS channel

Windows Server 1709 Semi-annual channel

Windows Server 1803 Semi-annual channel

Windows Server 1903 Semi-annual channel

Windows Server 1909 Semi-annual channel

Windows Server 2004 Semi-annual channel

Deployment

These templates will deploy and configure a Windows Server 2016/1709 VM instance with Windows Server Containers and Docker Engine 19.03. These items are performed by the template:

  • Deploy the prepared Windows Server Container Image with Docker 19.03
    • base OS image microsoft/windowsservercore:*
    • base OS image microsoft/nanoserver:*
  • Create TLS certificates for the Docker Engine
  • Prepare a docker-machine configuration in C:\.docker\machine\machines
  • Open Ports for RDP (3389), Docker (2376), as well as HTTP (80) and HTTPS (443).
  • Install additional Docker tools:
    • Docker Compose
    • Docker Machine

Specify your local home directory path in machineHome so the docker-machine config can be created exactly for your needs. Use the value of %USERPROFILE% on Windows and $HOME on Linux/Mac.

Connect to Docker Engine

To connect to the Windows Docker Engine from a notebook you just have to copy the TLS certificates from the Azure VM C:\.docker\machine\machines to your home directory -> .docker/machine/machines. Use the RDP session and copy the folder through RDP. For 1709 server core it is also possible. Just open notepad, then Open a file, browse to C:\.docker and CTRL+C the folder.

Paste the folder into the home directory of your local user account.

Now you can use the local docker-machine binary to switch environment variables to connect to the Docker engine running in the Azure VM.

Bash

$ eval $(docker-machine env az1709)

PowerShell

PS C:\> docker-machine env az1709 | iex

Now you are connected with the TLS protected Docker API of your Azure VM.

docker images

docker-run-cmd

or start your first Windows container eg. from your Mac

docker run -it microsoft/windowsservercore:1709 cmd

docker-run-cmd

Credits

This work is based on the Azure quickstart templates

docker-windows-azure's People

Contributors

stefanscherer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.