2

I am trying to Attach VS Code Window into a Docker container inside my remote machine on Azure. It has stopped working at some point, the message is "There are no running container to attach to", but clearly there is one because it finds it in the Docker extensions.

These are my steps.

  1. Open VS Code
  2. SSH-Remote Development to open VS Code on the Remote machine and install Docker extension there
  3. I find the docker container in the remote machine, but it fails opening it.

I attach here a screenshot.

enter image description here

I have tried this issue of possibly being because of opening VS Code from Spotlight instead of the Terminal, but is not the case.

Thanks !

1
  • did you fidn the answer? i have a similar issue Commented Feb 15, 2021 at 1:01

2 Answers 2

4

I had the same issue, but opening a folder first, on the VSCode instance on the remote machine, seems to solve the problem for me.

  • File > Open Folder > "chose a folder"
Sign up to request clarification or add additional context in comments.

2 Comments

It is incredibly silly that you have to do this. It does work though
@miversen33 somehow, it works on my machine
0

I had the same problem too, and I did some research and found out you must up your docker-compose and then try to attach it to the running container if you want to know whether your project is up or not try this command:

docker ps

if the container isn't on the list then you must up your project:

docker-compose up

OR

docker-compose up --build

Best Regards

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.