GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - StefanScherer/dockerfiles-windows: Various Dockerfiles for Windows Containers

BranchesTags
Open more actions menu

Latest commit

 

History

1,472 Commits
1,472 Commits

Folders and files

NameName
Last commit message
Last commit date
CVE-2017-0290
CVE-2017-0290
 
 
apache
apache
 
 
busybox
busybox
 
 
caddy
caddy
 
 
check-baseimage
check-baseimage
 
 
chocolatey
chocolatey
 
 
chown
chown
 
 
compose-issue-5371
compose-issue-5371
 
 
compose
compose
 
 
consul
consul
 
 
curl
curl
 
 
cygwin
cygwin
 
 
diskspd
diskspd
 
 
docker-cli
docker-cli
 
 
docker
docker
 
 
dockertls
dockertls
 
 
dotnet
dotnet
 
 
dsc
dsc
 
 
elasticsearch
elasticsearch
 
 
fossa
fossa
 
 
getaddrinfo
getaddrinfo
 
 
git-for-windows-issue
git-for-windows-issue
 
 
go-winio-issue-67
go-winio-issue-67
 
 
golang-issue-18555
golang-issue-18555
 
 
golang-issue-21867
golang-issue-21867
 
 
golang
golang
 
 
hugo
hugo
 
 
iis
iis
 
 
iisnode
iisnode
 
 
java
java
 
 
jenkins-swarm-agent
jenkins-swarm-agent
 
 
jenkins
jenkins
 
 
libuv
libuv
 
 
longpath
longpath
 
 
mongo
mongo
 
 
msbuild
msbuild
 
 
msys2
msys2
 
 
nanoserver
nanoserver
 
 
nanoserverapiscan
nanoserverapiscan
 
 
netapi-helper
netapi-helper
 
 
node-consul-env
node-consul-env
 
 
node-consul
node-consul
 
 
node-example
node-example
 
 
node-hello-express
node-hello-express
 
 
node
node
 
 
nodejs-node-8897
nodejs-node-8897
 
 
nodew
nodew
 
 
openssh
openssh
 
 
openssl
openssl
 
 
perl
perl
 
 
php
php
 
 
portainer
portainer
 
 
poshspec
poshspec
 
 
postgres
postgres
 
 
powercli
powercli
 
 
printcommandline
printcommandline
 
 
procmon
procmon
 
 
prometheus
prometheus
 
 
python
python
 
 
quotes
quotes
 
 
realpath
realpath
 
 
registry
registry
 
 
ruby
ruby
 
 
scoop
scoop
 
 
serverspec
serverspec
 
 
signtool
signtool
 
 
spaces
spaces
 
 
spooler
spooler
 
 
stack
stack
 
 
swarm
swarm
 
 
testvolume
testvolume
 
 
traefik
traefik
 
 
unicode
unicode
 
 
webserver
webserver
 
 
windows-service
windows-service
 
 
winrm
winrm
 
 
xterm
xterm
 
 
LICENSE
LICENSE
 
 
Links.md
Links.md
 
 
PowerShellTricks.md
PowerShellTricks.md
 
 
README.md
README.md
 
 
appveyor.yml
appveyor.yml
 
 
build.ps1
build.ps1
 
 
deploy.ps1
deploy.ps1
 
 
test.ps1
test.ps1
 
 
update-docker-cli.ps1
update-docker-cli.ps1
 
 
update-docker.ps1
update-docker.ps1
 
 

Repository files navigation

dockerfiles-windows

Build status

Various Dockerfiles for Windows. Most of these can be run as Windows Containers on Windows 10, Windows Server 2016, Windows Server 1803 and Windows Server 2019.

Most of these Dockerfiles are automatically built on AppVeyor and pushed to Docker Hub. See the badges in each sub folder's README files.

Getting started

Windows 10

  • Physical Machine / Virtual Machine
    • Install Docker Community Edition for Windows on your Windows 10 Pro/Enterprise machine.
  • Get a Windows 10 Virtual Machine
    • Packer and Vagrant
      • Use Packer with this packer-windows templates to build the windows_10 Vagrant box.
      • Use Vagrant and this docker-windows-edge Vagrantfile to have Docker for Windows and lots of Docker Tools installed.
  • Clone this repo and create some Docker images.

Windows Server 2016

  • Register to evaluate Windows Server 2016.
  • Get a Windows Server 2016 Virtual Machine
    • Packer and Vagrant
      • Use Packer with this packer-windows templates to build the windows_2016_docker Vagrant box.
      • Use Vagrant and this windows-docker-machine Vagrantfile to have Docker and lots of Docker Tools installed. Run vagrant up 2016.
    • Azure
      • Deploy a Windows Server 2016 VM to Azure with docker-windows-azure template
  • Clone this repo and create some Docker images

Windows Server 1803

  • Get a Windows Server 1803 Virtual Machine
    • Packer and Vagrant
      • Use Packer with this packer-windows templates to build the windows_server_1803_docker Vagrant box]. You need the ISO file from your MSDN subscription.
      • Use Vagrant and this windows-docker-machine Vagrantfile to have Docker and lots of Docker Tools installed. Run vagrant up 1803.
      • Clone this repo and create some Docker images. Look for the Dockerfile.1803 files.
      • It is recommended to use the smaller base images mcr.microsoft.com/windows/nanoserver:1803 and mcr.microsoft.com/windows/servercore:1803.

Windows Server 2019

  • Get a Windows Server 2019 Virtual Machine
    • Packer and Vagrant
      • Use Packer with this packer-windows templates to build the windows_2019_docker Vagrant box]. You need the ISO file from your MSDN subscription.
      • Use Vagrant and this windows-docker-machine Vagrantfile to have Docker and lots of Docker Tools installed. Run vagrant up 2019.
      • Clone this repo and create some Docker images. Look for the Dockerfile.1809 files.
      • It is recommended to use the smaller base images mcr.microsoft.com/windows/nanoserver:1809 and mcr.microsoft.com/windows/servercore:1809.

Further reading

  • Network start-up and performance improvements in Windows 10 April 2018 Update and Windows Server, version 1803, 2018-04-27
  • Modernizing existing .NET applications with Windows Containers and Azure cloud, 2017-09-28
  • Windows Containers Internals, 2016-10-24
  • Performance Tuning Guidelines for Windows Server 2016
  • Read the Quick Start: Windows Server Containers and Docker to get started with a first tutorial.
  • Read my blog post Create a Node.js Container image for Windows for my first test drive with Docker on Windows.
  • Image what will happen when Kitematic meets Windows Containers.
  • More Dockerfiles for Windows: Buc Rogers: Dockerfiles-for-Windows
  • Windows Server Containers Examples: https://github.com/Microsoft/Virtualization-Documentation/tree/master/windows-container-samples/windowsservercore
  • Networking
    • Windows NAT (WinNAT) — Capabilities and limitations, 2016-05-25
    • Windows Container Networking, 2016-08-22
    • Docker Compose and Networking blog post, 2016-10-18
    • Published Ports On Windows Containers Don't Do Loopback, 2016-10-20

PowerShell tricks

Porting Dockerfiles from Linux to Windows I found it useful to use PowerShell at some points. Here are some PowerShell tricks that were useful for me.

Feedback and Pull Requests are welcome

If you have some improvements, bug fixes, some new Dockerfiles or more PowerShell tricks, just send me a PR. If you have questions or problems, open an issue for discussion.

Troubleshooting

If you have trouble running Windows Containers you should have a look at https://docs.microsoft.com/virtualization/windowscontainers/troubleshooting

Invoke-WebRequest https://aka.ms/Debug-ContainerHost.ps1 -UseBasicParsing | Invoke-Expression

License

MIT - for more details see the LICENSE file.

About

Various Dockerfiles for Windows Containers

Topics

docker-for-windowsdocker-imagedocker-imagesdockerfiledockerfiles-windowswindows-containerswindowscontainers

Resources

Readme
MIT license
Activity

Stars

1.1k stars

Watchers

49 watching

Forks

390 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.