-
Notifications
You must be signed in to change notification settings - Fork 522
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
Failed to connect. Is Docker installed and running? #3483
Comments
This error usually occurs in SSH contexts when an ssh-agent has not been set up. Even though the Docker CLI does not require one, the Once you have one going, does it work? |
After I had restarted the remote linux, it worked. |
Glad to hear it's working now! |
@bwateratmsft Hi! I have the same issue, but I have ssh-agent running. It seems like vscode cannot detect it and shows the warning and cannot connect to remote context. I've everything is set up according to instruction you linked, but it still doesn't works. |
@Igorgro please confirm you understood and followed the first tip in the instructions (the one about using only globally-resolvable DNS machine name or IP address in Docker endpoint definition) and that the remote Docker context is usable from command line (you can execute command such as If that is all true, maybe you can share the definition of your remote Docker context? |
Yes, I can run any docker commands from command line, but not from vscode. I'm creating the context with the following command: |
Igorgro thanks. Sorry, I have no other ideas why the Docker extension does not work; looks like you did everything right. 😞 |
Hopefully this will get fixed with #3263. |
I am using docker to develop on remote linux host, and I am using docker context to connect to the remote host.
But I got error
Failed to connect. Is Docker installed and running?
when I open the docker panel on vscode:And the Docker CLI works :
The text was updated successfully, but these errors were encountered: