可以在unix:///var/run/docker.sock上连接到docker守护程序。 Docker守护程序在运行吗?” Windows上的错误

发布于 2025-02-04 02:47:42 字数 582 浏览 4 评论 0 原文

我是一个试图运行“ Docker-Compose Up”命令的Windows用户,但继续在标题中获得错误。我使用WSL 2在Ubuntu中编写此代码。

我尝试了所有内容 - 从 post to this post - 并确保我正确安装了Docker。当我运行“ Sudo Service Docker Start”时,我会得到“ Docker:未识别的服务”。我正在考虑切换到Podman(尽管不想避免它可以避免)必须使用Docker守护程序 - 尽管我似乎无法在WSL中运行它。

所有指导都将不胜感激!

I am a Windows user trying to run "docker-compose up" command but continue to get the error in title. I am writing this code in Ubuntu using WSL 2.

I have tried everything - from this post to this post - and have made sure I have docker installed correctly. When I run "sudo service docker start" I get "docker: unrecognized service". I'm thinking of switching to Podman (though would prefer not to if can avoid it) to get past having to use the docker daemon- though I can't seem to get this to run in wsl.

Any and all guidance would be appreciated!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

寒尘 2025-02-11 02:47:42

这通常意味着您的Docker服务未运行。

打开运行并键入services.msc,然后单击“确定”或命中输入

搜索的服务,名为 docker桌面服务
确保它正在运行。

您还可以将Docker服务设置为从Docker桌面GUI设置面板登录时启动以

启动://i.sstatic.net/ybyzr.png“ alt =” docker桌面设置“>

This typically means that your Docker Service is not running.

Open RUN and type services.msc, then click OK or hit enter

Search for service named as Docker Desktop Service.
Make sure it is running.

You can also set the Docker service to start when you login from Docker Desktop GUI setting panel

Docker Desktop Settings

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文