-
Notifications
You must be signed in to change notification settings - Fork 527
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot connect to docker #4471
Comments
I am using the extenstion in code server (vscode online server) $ docker context ls |
What do you see if you do |
Having same issue on MacBook Pro M3.
|
@Baalakay are you using Docker Desktop for Mac or some other installation of Docker? |
Docker Desktop for Mac. I also installed the vscode docker extension on the devcontainer just to see what happens, and I no longer get the "Failed to Connect" errors as the OP, but now get this but still don't see any running containers. I'm thinking it's probably looking just for containers on the devcontainer and not local ("Docker-in-Docker)? |
Right, by default it would only show the containers inside the container (Docker-in-Docker), not beside the container (Docker-from-Docker)--you have to volume map We simply use the CLI to find containers (as opposed to the HTTP endpoint), so as long as the CLI is working and the relevant environment variables are the same, you can expect the Docker extension to work. So if you're seeing the same error as OP, I suspect that for some reason when we run If you do the command "Developer: Set Log Level...", select the Docker log, and set the log level to Trace, it will spit a bunch of info including the full environment to the Docker output log. That might offer some clues. |
Ok, will try the volume map and report back. Thx! |
So I as able to get it working simply by adding this feature to the devcontainer.json: https://github.com/devcontainers/features/tree/main/src/docker-outside-of-docker Also, installed this to get the stats shown at the bottom, like I was originally looking for. All good now, thanks for the help @bwateratmsft |
Glad it's working! I'll keep this open in case @sivom comments. |
Does this occur consistently?
Repro steps:
Version: 1.29.3
OS: linux
OS Release: 6.1.0-28-amd64
Product: code-server
Product Version: 1.96.2
Language: en
The text was updated successfully, but these errors were encountered: