你的位置:全讯白菜网站大全 [云原生]Docker装配,告别报错 > 全讯白菜网站大全产品中心 > 全讯白菜网站大全 [云原生]Docker装配,告别报错

全讯白菜网站大全 [云原生]Docker装配,告别报错

时间:2022-09-09 00:22 点击:186次

这里教师window装配docker全讯白菜网站大全,小航的电脑:Win11家庭版,不自带Hyper-V

1.装配Hyper-V

复制剧本txt,然后再行定名为bat,右键使用经管员实施

pushd"%~dp0"

dir/b%SystemRoot%\servicing\Packages\*Hyper-V*.mum>hyper-v.txt

for/f%%iin('findstr/i.hyper-v.txt2^>nul')dodism/online/norestart/add-package:"%SystemRoot%\servicing\Packages\%%i"

delhyper-v.txt

Dism/online/enable-feature/featurename:Microsoft-Hyper-V-All/LimitAccess/ALL

2.启动化环境

经管员身份大开PowerShell:离别实施以下呐喊

dism.exe/online/enable-feature/featurename:Microsoft-Windows-Subsystem-Linux/all/norestart

dism.exe/online/enable-feature/featurename:VirtualMachinePlatform/all/norestart

3.更新wsl2

下载装配:地址

经管员身份大开PowerShell:实施以下呐喊

wsl--set-default-version2

4.装配Docker

官网

傻瓜式装配->waiting

告捷装配后就会看到以下界面:

Find beauty in imperfection

进去后告捷的界面:

可能会遭遇的一系列问题:

docker大开报错System.InvalidOperationException:Failedtosetversiontodocker-desktop:exitcode:-1

措置有野心:

经管员身份大开PowerShell:实施以下呐喊,重启电脑即可

netshwinsockreset

成立镜像加快:

小航这里习气用呐喊行的界面了,是以使用经管员大开呐喊行:

dockerinfo

RegistryMirrors:https://xxxxxx.mirror.aliyuncs.com/

测试是否装配告捷:

dockerrunhello

C:\WINDOWS\system32>dockerrunhello-worldUnabletofindimage'hello-world:latest'locallylatest:Pullingfromlibrary/hello-world2db29710123e:PullcompleteDigest:sha256:2498fce14358aa50ead0cc6c19990fc6ff866ce72aeb5546e1d59caac3d0d60fStatus:Downloadednewerimageforhello-world:latestHellofromDocker!Thismessageshowsthatyourinstallationappearstobeworkingcorrectly.Togeneratethismessage,Dockertookthefollowingsteps:1.TheDockerclientcontactedtheDockerdaemon.2.TheDockerdaemonpulledthe"hello-world"imagefromtheDockerHub.(amd64)3.TheDockerdaemoncreatedanewcontainerfromthatimagewhichrunstheexecutablethatproducestheoutputyouarecurrentlyreading.4.TheDockerdaemonstreamedthatoutputtotheDockerclient,whichsentittoyourterminal.Totrysomethingmoreambitious,youcanrunanUbuntucontainerwith:$dockerrun-itubuntubashShareimages,automateworkflows全讯白菜网站大全,andmorewithafreeDockerID:https://hub.docker.com/Formoreexamplesandideas,visit:https://docs.docker.com/get-started/

全讯白菜网站大全服务热线
官方网站:http://www.dadamotorsbajaj.com/
工作时间:周一至周六(09:00-18:00)
联系我们
QQ:285232323220325
邮箱:dfdfd343483@qq.com
地址:武汉东湖新技术开发区光谷大道国际企业中心
关注公众号

Powered by 全讯600cc大白菜_全讯白菜网站大全 RSS地图 HTML地图

Copyright © 2013-2022 全讯600cc大白菜_全讯白菜网站大全 版权所有

回到顶部