Windows 2019 docker 速记

Posted qinqoushui

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Windows 2019 docker 速记相关的知识,希望对你有一定的参考价值。

教程参考:

http://www.runoob.com/docker/docker-tutorial.html

开发调试参考:

https://www.cnblogs.com/xuebuwan/archive/2018/05/06/8707187.html

?

docker for window安装

https://www.cnblogs.com/stulzq/p/7743667.html

?

部署参考:

https://blog.sixeyed.com/getting-started-with-docker-on-windows-server-2019/

主要命令如下

?

Set-ItemProperty -Path ‘HKLM:SOFTWAREMicrosoftWindows NTCurrentVersionWinlogon‘ -name Shell -Value ‘PowerShell.exe -noExit‘

?

Install-WindowsFeature -Name Containers

?

Uninstall-WindowsFeature Windows-Defender

?

Restart-Computer -Force 

?

Install-Module -Name DockerMsftProvider -Repository PSGallery -Force

?

Install-Package -Name docker -ProviderName DockerMsftProvider -Force -RequiredVersion 18.03  

?

Start-Service docker

?

?

?

?

Docker市场参考

https://hub.docker.com/r/microsoft

?

docker image pull mcr.microsoft.com/windows/servercore

docker image pull mcr.microsoft.com/windows/nanoserver

docker pull microsoft/dotnet:2.1-sdk

?

?

?

启动DOCKER

docker info

docker images

docker

?

?

?

?

以上是关于Windows 2019 docker 速记的主要内容,如果未能解决你的问题,请参考以下文章

denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock.......(代码片

denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock.......(代码片

如果其他速记需要速记建议

Windows批处理文件中的Docker退出代码

CMake速记

Windows Server 2019 Core(4)-安装Docker