最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Eclipse IDE docker tooling - How to create connection to Docker - Stack Overflow

programmeradmin1浏览0评论

I am using Ubuntu 24.04 and developing C/C++ programs using Eclipse IDE [2025-03]. I am doing cross development and my development tools require ubuntu 20.04 I have setup Docker desktop/engine as described in: / Docker runs fine and I have established a container with the pre-requite Ubuntu that works as expected. Docker desktop is version 28.0.1

In Eclipse I have added the Docker tooling, and changed to the Docker perspective. Eclipse indicates there is no connection to a docker daemon so I click to create a new connection.

Problem 1: Eclipse now asks me for: connection name. If I use search, it says I need to set preferences for the docker-machine

Running "$ docker info" on Ubuntu says the root directory for Docker is /var/lib/docker and systemctl says Docker is running as /usr/lib/systemd/system/docker.service

Eclipse asks where the docker-machine command is located, but eclipse indicates both the above directories don't have the docker-machine command.

????? what directories do UI use for the docker machine and for the VM Driver ?

Problem 2: Eclipse also asks to provide the unix socket for docker. Running "$ docker info" on Ubuntu I get: com.docker.desktop.address=unix:///home/lachlan/.docker/desktop/docker-cli.sock

If I use this address and test the connection, it says "ping failed". but I notice it tries to ping unix://localhost:80

???? Can anyone help me how to set the connection in eclipse so I can get access to the docker containers?

发布评论

评论列表(0)

  1. 暂无评论