{"id":14064615,"url":"https://github.com/StefanScherer/docker-windows-azure","last_synced_at":"2025-07-29T18:33:30.157Z","repository":{"id":143128580,"uuid":"50779008","full_name":"StefanScherer/docker-windows-azure","owner":"StefanScherer","description":"Deploy a Windows \"Docker-Machine\" on Azure","archived":false,"fork":false,"pushed_at":"2020-07-21T18:15:06.000Z","size":1681,"stargazers_count":19,"open_issues_count":0,"forks_count":6,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-11-30T01:11:56.346Z","etag":null,"topics":["azure","docker-engine","docker-machine","windows-containers"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StefanScherer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2016-01-31T14:45:01.000Z","updated_at":"2022-07-04T10:01:05.000Z","dependencies_parsed_at":"2024-02-15T00:46:38.252Z","dependency_job_id":null,"html_url":"https://github.com/StefanScherer/docker-windows-azure","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefanScherer%2Fdocker-windows-azure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefanScherer%2Fdocker-windows-azure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefanScherer%2Fdocker-windows-azure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StefanScherer%2Fdocker-windows-azure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StefanScherer","download_url":"https://codeload.github.com/StefanScherer/docker-windows-azure/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228040759,"owners_count":17860211,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure","docker-engine","docker-machine","windows-containers"],"created_at":"2024-08-13T07:03:57.818Z","updated_at":"2024-12-04T03:31:10.848Z","avatar_url":"https://github.com/StefanScherer.png","language":"PowerShell","funding_links":[],"categories":["PowerShell"],"sub_categories":[],"readme":"# docker-windows-azure\n\n## Windows Server 2019 LTS channel\n\n\u003ca href=\"https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FStefanScherer%2Fdocker-windows-azure%2Fmain%2F2019%2Fazuredeploy.json\" target=\"_blank\"\u003e\n    \u003cimg src=\"http://azuredeploy.net/deploybutton.png\"/\u003e\n\u003c/a\u003e\n\u003ca href=\"http://armviz.io/#/?load=https%3A%2F%2Fraw.githubusercontent.com%2FStefanScherer%2Fdocker-windows-azure%2Fmain%2F2019%2Fazuredeploy.json\" target=\"_blank\"\u003e\n    \u003cimg src=\"http://armviz.io/visualizebutton.png\"/\u003e\n\u003c/a\u003e\n\n## Windows Server 2016 LTS channel\n\n\u003ca href=\"https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FStefanScherer%2Fdocker-windows-azure%2Fmain%2F2016%2Fazuredeploy.json\" target=\"_blank\"\u003e\n    \u003cimg src=\"http://azuredeploy.net/deploybutton.png\"/\u003e\n\u003c/a\u003e\n\u003ca href=\"http://armviz.io/#/?load=https%3A%2F%2Fraw.githubusercontent.com%2FStefanScherer%2Fdocker-windows-azure%2Fmain%2F2016%2Fazuredeploy.json\" target=\"_blank\"\u003e\n    \u003cimg src=\"http://armviz.io/visualizebutton.png\"/\u003e\n\u003c/a\u003e\n\n## Windows Server 1709 Semi-annual channel\n\n\u003ca href=\"https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FStefanScherer%2Fdocker-windows-azure%2Fmain%2F1709%2Fazuredeploy.json\" target=\"_blank\"\u003e\n    \u003cimg src=\"http://azuredeploy.net/deploybutton.png\"/\u003e\n\u003c/a\u003e\n\u003ca href=\"http://armviz.io/#/?load=https%3A%2F%2Fraw.githubusercontent.com%2FStefanScherer%2Fdocker-windows-azure%2Fmain%2F1709%2Fazuredeploy.json\" target=\"_blank\"\u003e\n    \u003cimg src=\"http://armviz.io/visualizebutton.png\"/\u003e\n\u003c/a\u003e\n\n## Windows Server 1803 Semi-annual channel\n\n\u003ca href=\"https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FStefanScherer%2Fdocker-windows-azure%2Fmain%2F1803%2Fazuredeploy.json\" target=\"_blank\"\u003e\n    \u003cimg src=\"http://azuredeploy.net/deploybutton.png\"/\u003e\n\u003c/a\u003e\n\u003ca href=\"http://armviz.io/#/?load=https%3A%2F%2Fraw.githubusercontent.com%2FStefanScherer%2Fdocker-windows-azure%2Fmain%2F1803%2Fazuredeploy.json\" target=\"_blank\"\u003e\n    \u003cimg src=\"http://armviz.io/visualizebutton.png\"/\u003e\n\u003c/a\u003e\n\n## Windows Server 1903 Semi-annual channel\n\n\u003ca href=\"https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FStefanScherer%2Fdocker-windows-azure%2Fmain%2F1903%2Fazuredeploy.json\" target=\"_blank\"\u003e\n    \u003cimg src=\"http://azuredeploy.net/deploybutton.png\"/\u003e\n\u003c/a\u003e\n\u003ca href=\"http://armviz.io/#/?load=https%3A%2F%2Fraw.githubusercontent.com%2FStefanScherer%2Fdocker-windows-azure%2Fmain%2F1903%2Fazuredeploy.json\" target=\"_blank\"\u003e\n    \u003cimg src=\"http://armviz.io/visualizebutton.png\"/\u003e\n\u003c/a\u003e\n\n## Windows Server 1909 Semi-annual channel\n\n\u003ca href=\"https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FStefanScherer%2Fdocker-windows-azure%2Fmain%2F1909%2Fazuredeploy.json\" target=\"_blank\"\u003e\n    \u003cimg src=\"http://azuredeploy.net/deploybutton.png\"/\u003e\n\u003c/a\u003e\n\u003ca href=\"http://armviz.io/#/?load=https%3A%2F%2Fraw.githubusercontent.com%2FStefanScherer%2Fdocker-windows-azure%2Fmain%2F1909%2Fazuredeploy.json\" target=\"_blank\"\u003e\n    \u003cimg src=\"http://armviz.io/visualizebutton.png\"/\u003e\n\u003c/a\u003e\n\n## Windows Server 2004 Semi-annual channel\n\n\u003ca href=\"https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FStefanScherer%2Fdocker-windows-azure%2Fmain%2F2004%2Fazuredeploy.json\" target=\"_blank\"\u003e\n    \u003cimg src=\"http://azuredeploy.net/deploybutton.png\"/\u003e\n\u003c/a\u003e\n\u003ca href=\"http://armviz.io/#/?load=https%3A%2F%2Fraw.githubusercontent.com%2FStefanScherer%2Fdocker-windows-azure%2Fmain%2F2004%2Fazuredeploy.json\" target=\"_blank\"\u003e\n    \u003cimg src=\"http://armviz.io/visualizebutton.png\"/\u003e\n\u003c/a\u003e\n\n## Deployment\n\nThese 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:\n\n* Deploy the prepared Windows Server Container Image with Docker 19.03\n  * base OS image microsoft/windowsservercore:\\*\n  * base OS image microsoft/nanoserver:\\*\n* Create TLS certificates for the Docker Engine\n* Prepare a `docker-machine` configuration in `C:\\.docker\\machine\\machines`\n* Open Ports for RDP (3389), Docker (2376), as well as HTTP (80) and HTTPS (443).\n* Install additional Docker tools:\n  * Docker Compose\n  * Docker Machine\n\nSpecify 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.\n\n![](images/az1709.png)\n\n## Connect to Docker Engine\n\nTo connect to the Windows Docker Engine from a notebook you just have to copy the TLS certificates\nfrom the Azure VM `C:\\.docker\\machine\\machines` to your home directory -\u003e `.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.\n\n![](images/copy-certs-1709.png)\n\nPaste the folder into the home directory of your local user account.\n\nNow you can use the local `docker-machine` binary to switch environment variables to connect to the Docker engine running in the Azure VM.\n\nBash\n\n```bash\n$ eval $(docker-machine env az1709)\n```\n\nPowerShell\n\n```bash\nPS C:\\\u003e docker-machine env az1709 | iex\n```\n\nNow you are connected with the TLS protected Docker API of your Azure VM.\n\n```bash\ndocker images\n```\n\n![docker-run-cmd](images/docker-images.png)\n\nor start your first Windows container eg. from your Mac\n\n```bash\ndocker run -it microsoft/windowsservercore:1709 cmd\n```\n\n![docker-run-cmd](images/docker-run-cmd.png)\n\n## Credits\n\nThis work is based on the Azure quickstart templates\n\n* https://github.com/Azure/azure-quickstart-templates/tree/master/windows-server-containers-preview\n* https://github.com/Azure/azure-quickstart-templates/tree/master/201-vm-winrm-windows\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FStefanScherer%2Fdocker-windows-azure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FStefanScherer%2Fdocker-windows-azure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FStefanScherer%2Fdocker-windows-azure/lists"}