添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

Docker and Windows - A connection attempt failed because the connected party did not properly respond after a period of time

Ask Question

I installed the docker toolbox but when i try to create a container it gives me that error. The version is returned but it's not possible to create a container.

OS: Windows 10 Home

ERROR: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

I had the same problem with Docker Desktop (Year 2021). None of the solutions worked. Finally I tried the following and it worked.

  • Remove the following environment variable from windows DOCKER_HOST
  • In docker desktop settings enable the following option Expose daemon on tcp://localhost:2375 without TLS
  • That worked like charm, thank you so much. And I didn't even exposed daemon. removing the DOCKER_HOST only did the trick :) – Naveen Goyal Feb 1, 2022 at 16:09

    Other resources suggested to deinstall and install docker for windows or the toolbox again, or said you couldn't run both at the same time. But that was not the problem for me. Turns out I just needed to update VirtualBox 6.0 to 6.1.

    TLDR; Is your docker vm even running? Are you using a troublesome VirtualBox version? Update!

    Hi! Thanks for the answer. It's been a while since I had this problem and I gave up back then. But I'll try it again! Thanks – Laura Beatris Aug 13, 2020 at 10:30 In my case it was second docker-compose running. Stopping it was not enough - I had to also restart Windows. – pmaruszczyk Sep 7, 2022 at 10:01

    Thanks for contributing an answer to Stack Overflow!

    • Please be sure to answer the question. Provide details and share your research!

    But avoid

    • Asking for help, clarification, or responding to other answers.
    • Making statements based on opinion; back them up with references or personal experience.

    To learn more, see our tips on writing great answers.