官网下载.exe文件后,运行,会检测到wsl2的安装并提示自动集成,安装完成后。

打开docker desktop,按照教程,

docker run-d-p 80:80 docker/getting-started

在命令行pull一个getting-started镜像,提示80端口被占用。

docker: Error response from daemon: 
Ports are not available: listen tcp 0.0.0.0:80: 
bind: An attempt was made to access a socket 
in a way forbidden by its access permissions

查看任务管理器,是system在占用,在笔者的情况下,只要打开服务,然后关闭图中的world wide web服务就行了。若是不管用,请搜索其他方法。
在这里插入图片描述
之后,镜像拉取成功,运行正常。如果你想找到镜像文件在硬盘上存储位置,请看
https://blog.csdn.net/qq_43780850/article/details/115936537

Logo

一站式 AI 云服务平台

更多推荐