Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c92d0f3

Browse files
author
Victoria Bialas
committed
clarify how to use Windows containers and Windows Server 2016
Signed-off-by: Victoria Bialas <[email protected]>
1 parent 47de0e2 commit c92d0f3

File tree

3 files changed

+74
-22
lines changed

3 files changed

+74
-22
lines changed

docker-for-windows/faqs.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,15 @@ cycles. Exit and start Docker to restore connectivity.
157157
Unfortunately, VirtualBox (and other hypervisors like VMWare) cannot run when
158158
Hyper-V is enabled on Windows.
159159

160+
### How do I run Windows containers on Docker on Windows Server 2016?
161+
162+
See [About Windows containers and Windows Server
163+
2016](index.md#about-windows-containers-and-windows-server-2016).
164+
165+
A full tutorial is available in [docker/labs](https://github.com/docker/labs) at
166+
[Getting Started with Windows
167+
Containers](https://github.com/docker/labs/tree/master/windows/windows-containers).
168+
160169
### Why is Windows 10 Home not supported?
161170

162171
Docker for Windows requires the Hyper-V Windows feature which is not

docker-for-windows/index.md

Lines changed: 31 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -66,33 +66,46 @@ If you have not already done so, please install Docker for Windows. You can down
6666
6767
## What to know before you install
6868

69-
* **README FIRST for Docker Toolbox and Docker Machine users**: Docker for Windows requires Microsoft Hyper-V to run. After Hyper-V is enabled, VirtualBox will no longer work, but any VirtualBox VM images will remain. VirtualBox VMs created with `docker-machine` (including the `default` one typically created during Toolbox install) will no longer start. These VMs cannot be used side-by-side with Docker for Windows. However, you can still use `docker-machine` to manage remote VMs.
69+
* **README FIRST for Docker Toolbox and Docker Machine users**: Docker for Windows requires Microsoft Hyper-V to run. After Hyper-V is enabled,
70+
VirtualBox will no longer work, but any VirtualBox VM images will remain.
71+
VirtualBox VMs created with `docker-machine` (including the `default` one
72+
typically created during Toolbox install) will no longer start. These VMs cannot
73+
be used side-by-side with Docker for Windows. However, you can still use
74+
`docker-machine` to manage remote VMs.
7075
<p />
7176
* The current version of Docker for Windows runs on 64bit Windows 10 Pro, Enterprise and Education (1511 November update, Build 10586 or later). In the future we will support more versions of Windows 10.
7277
<p />
73-
* Containers and images created with Docker for Windows are shared between all user accounts on machines where it is installed. This is because all Windows accounts will use the same VM to build and run containers. In the future, Docker for Windows will better isolate user content.
78+
* Containers and images created with Docker for Windows are shared between all user accounts on machines where it is installed. This is because all
79+
Windows accounts will use the same VM to build and run containers. In the
80+
future, Docker for Windows will better isolate user content.
7481
<p />
75-
* The Hyper-V package must be enabled for Docker for Windows to work. The Docker for Windows installer will enable it for you, if needed. (This requires a reboot). If your system does not satisfy these requirements, you can install [Docker Toolbox](/toolbox/overview.md), which uses Oracle Virtual Box instead of Hyper-V.
82+
* The Hyper-V package must be enabled for Docker for Windows to work. The Docker for Windows installer will enable it for you, if needed. (This requires a
83+
reboot). If your system does not satisfy these requirements, you can install
84+
[Docker Toolbox](/toolbox/overview.md), which uses Oracle Virtual Box instead of
85+
Hyper-V.
7686
<p />
77-
* Virtualization must be enabled. Typically, virtualization is enabled by default. (Note that this is different from having Hyper-V enabled.) For more detail see [Virtualization must be enabled](troubleshoot.md#virtualization-must-be-enabled) in Troubleshooting.
78-
<br><br>
79-
* **What the Docker for Windows install includes**: The installation provides [Docker Engine](/engine/userguide/intro/), Docker CLI client, [Docker Compose](/compose/overview/), and [Docker Machine](/machine/overview/).
87+
* Virtualization must be enabled. Typically, virtualization is enabled by default. (Note that this is different from having Hyper-V enabled.) For more
88+
detail see [Virtualization must be
89+
enabled](troubleshoot.md#virtualization-must-be-enabled) in Troubleshooting.
8090
<p />
81-
* You can run **Docker on Windows Server 16 and Windows 10** in two different ways:
91+
* **What the Docker for Windows install includes**: The installation provides [Docker Engine](https://docs.docker.com/engine/userguide/intro/), Docker CLI client, [Docker Compose](https://docs.docker.com/compose/overview/), and [Docker Machine](https://docs.docker.com/machine/overview/).
8292

83-
* You can [install a native Docker binary](https://msdn.microsoft.com/en-us/virtualization/windowscontainers/quick_start/quick_start_windows_10)
84-
which allows you to develop and run Windows containers natively. However, if you
85-
install Docker this way, you cannot develop or run Linux containers. If you try to run a Linux container on the native Docker daemon, an error occurs:
93+
### About Windows containers and Windows Server 2016
8694

87-
```no-highlight
88-
C:\Program Files\Docker\docker.exe:
89-
image operating system "linux" cannot be used on this platform.
90-
See 'C:\Program Files\Docker\docker.exe run --help'.
91-
```
95+
Looking for information on using Windows containers?
9296

93-
* You can [install Docker for Windows](#step-1-install-docker-for-windows),
94-
which allows you to develop and run Windows containers natively, or develop
95-
and run Linux containers using Hyper-V. This is the best of both worlds.
97+
* [Getting Started with Windows Containers (Lab)](https://github.com/docker/labs/tree/master/windows/windows-containers)
98+
provides a tutorial on how to set up and run Windows containers on Windows 10 or
99+
with Windows Server 2016. It shows you how to use a MusicStore application with
100+
Windows containers.
101+
<p />
102+
* [Setup - Windows Server 2016 (Lab)](https://github.com/docker/labs/blob/master/windows/windows-containers/Setup-Server2016.md) specifically describes environment setup.
103+
<p />
104+
* [Switch
105+
between Windows and Linux containers (Beta
106+
feature)](index.md#switch-between-windows-and-linux-containers-beta-feature) describes the Linux / Windows containers toggle in Docker for Windows and points you to the tutorial mentioned above.
107+
<p />
108+
* Docker Container Platform for Windows Server 2016 [articles and blog posts](https://www.docker.com/microsoft) on the Docker website
96109

97110
## Step 1. Install Docker for Windows
98111

docker-for-windows/troubleshoot.md

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,17 @@ To fix existing containers, follow these steps.
161161

162162
### Hyper-V
163163

164-
Docker for Windows requires a Hyper-V as well as the Hyper-V Module for Windows Powershell to be installed and enabled. The Docker for Windows installer will enable it for you.
165-
166-
See [these instructions](https://msdn.microsoft.com/en-us/virtualization/hyperv_on_windows/quick_start/walkthrough_install) to install Hyper-V manually. A reboot is *required*. If you install Hyper-V without the reboot, Docker for Windows will not work correctly. On some systems, Virtualization needs to be enabled in the BIOS. The steps to do so are Vendor specific, but typically the BIOS option is called `Virtualization Technology (VTx)` or similar.
164+
Docker for Windows requires a Hyper-V as well as the Hyper-V Module for Windows
165+
Powershell to be installed and enabled. The Docker for Windows installer will
166+
enable it for you.
167+
168+
See [these
169+
instructions](https://msdn.microsoft.com/en-us/virtualization/hyperv_on_windows/quick_start/walkthrough_install)
170+
to install Hyper-V manually. A reboot is *required*. If you install Hyper-V
171+
without the reboot, Docker for Windows will not work correctly. On some systems,
172+
Virtualization needs to be enabled in the BIOS. The steps to do so are Vendor
173+
specific, but typically the BIOS option is called `Virtualization Technology
174+
(VTx)` or similar.
167175

168176
### Virtualization must be enabled
169177

@@ -175,7 +183,29 @@ Verify that virtualization is enabled on Task Manager.
175183

176184
![Task Manager](images/win-virtualization-enabled.png)
177185

178-
See also, the user reported issue [Unable to run Docker for Windows on Windows 10 Enterprise](https://github.com/docker/for-win/issues/74)
186+
See also, the user reported issue [Unable to run Docker for Windows on Windows
187+
10 Enterprise](https://github.com/docker/for-win/issues/74)
188+
189+
### Windows containers and Windows Server 2016
190+
191+
If you have questions about how to set up and run Windows containers on Windows
192+
Server 2016 or Windows 10, see [About Windows containers and Windows Server
193+
2016](index.md#about-windows-containers-and-windows-server-2016).
194+
195+
A full tutorial is available in [docker/labs](https://github.com/docker/labs) at
196+
[Getting Started with Windows
197+
Containers](https://github.com/docker/labs/tree/master/windows/windows-containers).
198+
199+
You can install a native Windows binary which allows you to develop and run
200+
Windows containers without Docker for Windows. However, if you install Docker
201+
this way, you cannot develop or run Linux containers. If you try to run a Linux
202+
container on the native Docker daemon, an error occurs:
203+
204+
```no-highlight
205+
C:\Program Files\Docker\docker.exe:
206+
image operating system "linux" cannot be used on this platform.
207+
See 'C:\Program Files\Docker\docker.exe run --help'.
208+
```
179209

180210
### Networking issues
181211

0 commit comments

Comments
 (0)