{"id":15694130,"url":"https://github.com/rgl/docker-windows-core-insider-2016-vagrant","last_synced_at":"2025-10-05T11:37:44.436Z","repository":{"id":139751486,"uuid":"99613666","full_name":"rgl/docker-windows-core-insider-2016-vagrant","owner":"rgl","description":"a Docker on Windows Server Core Insider 2016 Vagrant environment for playing with Windows containers","archived":false,"fork":false,"pushed_at":"2019-02-24T18:22:23.000Z","size":111,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-08T06:08:29.007Z","etag":null,"topics":["docker","windows"],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rgl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"publiccode":null,"codemeta":null}},"created_at":"2017-08-07T19:43:51.000Z","updated_at":"2022-04-19T09:21:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"bb5a1b71-a72f-42c3-b4a7-93a14e15ee6a","html_url":"https://github.com/rgl/docker-windows-core-insider-2016-vagrant","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/rgl%2Fdocker-windows-core-insider-2016-vagrant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fdocker-windows-core-insider-2016-vagrant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fdocker-windows-core-insider-2016-vagrant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgl%2Fdocker-windows-core-insider-2016-vagrant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rgl","download_url":"https://codeload.github.com/rgl/docker-windows-core-insider-2016-vagrant/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253009990,"owners_count":21839718,"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":["docker","windows"],"created_at":"2024-10-03T18:52:59.957Z","updated_at":"2025-10-05T11:37:44.327Z","avatar_url":"https://github.com/rgl.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is a Docker on Windows Server Core Insider 2016 Vagrant environment for playing with Windows containers.\r\n\r\n\r\n# Usage\r\n\r\nInstall the [Base Windows Server Core Insider Box](https://github.com/rgl/windows-2016-vagrant).\r\n\r\nInstall the required plugins:\r\n\r\n```bash\r\nvagrant plugin install vagrant-reload\r\n```\r\n\r\nThen launch the environment:\r\n\r\n```bash\r\nvagrant up --provider=virtualbox # or --provider=libvirt\r\n```\r\n\r\nAt the end of the provision the [examples](examples/) are run.\r\n\r\nThe Docker Engine API endpoint is available at http://10.0.0.3:2375.\r\n\r\n[Portainer](https://portainer.io/) is available at http://10.0.0.3:9000.\r\n\r\n[Project Honolulu](https://docs.microsoft.com/en-us/windows-server/manage/honolulu/honolulu) is available at https://10.0.0.3:8443.\r\n\r\n\r\n# Graceful Container Shutdown\r\n\r\n**Windows containers cannot be gracefully shutdown,** either there is no shutdown notification or they are forcefully terminated after a while. Check the [moby issue 25982](https://github.com/moby/moby/issues/25982) for progress.\r\n\r\nThe next table describes whether a `docker stop --time 600 \u003ccontainer\u003e` will graceful shutdown a container that is running a [console](https://github.com/rgl/graceful-terminating-console-application-windows/), [gui](https://github.com/rgl/graceful-terminating-gui-application-windows/), or [service](https://github.com/rgl/graceful-terminating-windows-service/) app.\r\n\r\n| base image        | app     | behaviour                                                              |\r\n| ----------------- | ------- | ---------------------------------------------------------------------- |\r\n| nanoserver        | console | does not receive the shutdown notification                             |\r\n| windowsservercore | console | receives the shutdown notification but is killed after about 5 seconds |\r\n| nanoserver        | gui     | fails to run `RegisterClass` (there's no GUI support in nano)          |\r\n| windowsservercore | gui     | receives the shutdown notification but is killed after about 5 seconds |\r\n| nanoserver        | service | only receives the **pre** shutdown notification but is killed after about 10 seconds |\r\n| windowsservercore | service | only receives the **pre** shutdown notification but is killed after about 10 seconds |\r\n\r\nYou can launch these example containers from host as:\r\n\r\n```bash\r\nvagrant execute -c '/vagrant/ps.ps1 examples/graceful-terminating-console-application/run.ps1'\r\nvagrant execute -c '/vagrant/ps.ps1 examples/graceful-terminating-gui-application/run.ps1'\r\nvagrant execute -c '/vagrant/ps.ps1 examples/graceful-terminating-windows-service/run.ps1'\r\n```\r\n\r\n\r\n# Troubleshoot\r\n\r\n* Restart the docker daemon in debug mode and watch the logs:\r\n  * set `\"debug\": true` inside the `$env:ProgramData\\docker\\config\\daemon.json` file\r\n  * restart docker with `Restart-Service docker`\r\n  * watch the logs with `Get-EventLog -LogName Application -Source docker -Newest 50`\r\n* For more information see the [Microsoft Troubleshooting guide](https://docs.microsoft.com/en-us/virtualization/windowscontainers/troubleshooting) and the [CleanupContainerHostNetworking](https://github.com/Microsoft/Virtualization-Documentation/tree/live/windows-server-container-tools/CleanupContainerHostNetworking) page.\r\n\r\n\r\n# References\r\n\r\n* [Using Insider Container Images](https://docs.microsoft.com/en-us/virtualization/windowscontainers/quick-start/using-insider-container-images)\r\n* [Beyond \\ - the path to Windows and Linux parity in Docker (DockerCon 17)](https://www.youtube.com/watch?v=4ZY_4OeyJsw)\r\n* [The Internals Behind Bringing Docker \u0026 Containers to Windows (DockerCon 16)](https://www.youtube.com/watch?v=85nCF5S8Qok)\r\n* [Introducing the Host Compute Service](https://blogs.technet.microsoft.com/virtualization/2017/01/27/introducing-the-host-compute-service-hcs/)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgl%2Fdocker-windows-core-insider-2016-vagrant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frgl%2Fdocker-windows-core-insider-2016-vagrant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgl%2Fdocker-windows-core-insider-2016-vagrant/lists"}