Popular blog tags

Windows 10 in a Docker container

Published

 

 

Docker for Windows 有两种运行模式,一种运行Windows相关容器,一种运行传统的Linux容器。同一时间只能选择一种模式运行。

 

How to Install Docker on Windows 10 and 11

To install Docker Desktop on Windows 10 and 11:

Download Docker Desktop for Windows.

https://www.docker.com/products/docker-desktop/

https://desktop.docker.com/win/main/amd64/Docker%20Desktop%20Installer.exe?


Open the downloaded setup; the file is usually in your PC's Downloads folder.
Grant administrator privileges, if required.
Follow the setup wizard to complete the installation of Docker Desktop.
Restart your PC for the changes to take effect.

2. 开启CPU虚拟化

在主板BIOS中打开一下CPU的虚拟化功能

3. 开启 Hyper-V

Docker 工具安装(windows 桌面版)

 

注意
Docker for Windows 和 Docker Toolbox互不兼容,如果同时安装两者的话,需要使用hyperv的参数启动。

docker-machine create --engine-registry-mirror=https://ia2mjqlo.mirror.aliyuncs.com -d hyperv default

Docker for Windows 有两种运行模式,一种运行Windows相关容器,一种运行传统的Linux容器。同一时间只能选择一种模式运行。

 

Windows Docker 镜像加速器

https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors

 

Windows 10 in a Docker container

https://github.com/dockur/windows