简体   繁体   中英

cannot connect intelliJ with Docker Machine

I'm having troubles with connecting my docker compose with intelliJ. I am using Docker toolbox. I have the docker-compose.exe file downloaded and in the folder of Docker Toolbox. However, I cannot seem to get everything connected.

当“连接它给出一个”超时“错误

When I go to the "Docker"-tab of the settings, I get the following.

Docker 选项卡中的错误

I am using the "Docker Machine" because on the Docker site it is said to use that.

Through the highlighted Docker Machine path error, I guess you don't have Docker Machine installed.

You should then switch to TCP Socket connection to connect to docker daemon:

  • IntelliJ IDEA:
    • Remove the Docker Machine path configured under File |Settings | Build, Execution & Deployment | Docker | Tools
    • Enable the TCP Socket under File | Settings | Build, Execution & Deployment | Docker
    • Set the Engine API URL to tcp://localhost:2375 (should be the default if you didn't change it)
  • Docker Desktop:
    • Expose the docker daemon, under Settings | General , enable Expose daemon on tcp://localhost:2375 without TLS option
    • Restart Docker Desktop and you are good to go

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM