Skip to content
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

Cant seem to Connect To Remote Running Container #449

Closed
akash3456 opened this issue May 24, 2019 · 24 comments
Closed

Cant seem to Connect To Remote Running Container #449

akash3456 opened this issue May 24, 2019 · 24 comments
Assignees
Labels
containers Issue in vscode-remote containers *duplicate Issue identified as a duplicate of another issue(s) info-needed Issue requires more information from poster

Comments

@akash3456
Copy link

i get this message when i attempt to attach vscode insider to a running windows container

image

@Chuxel
Copy link
Member

Chuxel commented May 24, 2019

@akash3456 Windows containers are not yet supported. It would be awesome if you'd upvote #445 if you are interested in them! Closing as a duplicate.

@Chuxel Chuxel closed this as completed May 24, 2019
@Chuxel Chuxel added the *duplicate Issue identified as a duplicate of another issue(s) label May 24, 2019
@akash3456
Copy link
Author

akash3456 commented May 25, 2019 via email

@Chuxel Chuxel removed the *duplicate Issue identified as a duplicate of another issue(s) label May 25, 2019
@Chuxel
Copy link
Member

Chuxel commented May 25, 2019

Since this happens on with Linux containers, can you tell me the steps you used to create the container? Also, have you shared your local drives via Docker settings? If not, you can see an error.

@Chuxel Chuxel reopened this May 25, 2019
@Chuxel
Copy link
Member

Chuxel commented May 25, 2019

Oh - and Alpine is not supported yet if you used an alpine container. See #54

@akash3456
Copy link
Author

this is the message for linux containers:

image

@egamma egamma added the containers Issue in vscode-remote containers label May 27, 2019
@chrmarti
Copy link
Contributor

Does setting the home folder in the Dockerfile with ENV HOME path help? (See #22 (comment).)

@chrmarti chrmarti added the info-needed Issue requires more information from poster label May 27, 2019
@akash3456
Copy link
Author

Why do i need to do this and the container in question was created using docker run against a solr image.

@akash3456
Copy link
Author

so what i have tried is the following:
image

same error occured when connecting to it remotely.

@chrmarti
Copy link
Contributor

/duplicate #22

From looking at the Dockerfile for solr, ENV HOME /var/solr/data should work. This is currently a limitation.

@vscodebot vscodebot bot added the *duplicate Issue identified as a duplicate of another issue(s) label May 27, 2019
@vscodebot
Copy link

vscodebot bot commented May 27, 2019

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot closed this as completed May 27, 2019
@akash3456
Copy link
Author

looks setting the env home to solr data dir didnt work as same error occured

@chrmarti
Copy link
Contributor

@akash3456 Make sure to rebuild the container. (Either remove the container manually or go through More Actions... on the error dialog and then choose to rebuild.)

@akash3456
Copy link
Author

I did that got the same thing. Are you able to showcase to me from your setup that this does actually work as I’m not convinced tbh

@chrmarti
Copy link
Contributor

FROM solr
ENV HOME /var/solr/data

Works for me. What's the error message you get with that?

@akash3456
Copy link
Author

#449 (comment)

Is the error message

@chrmarti
Copy link
Contributor

I would expect that for the old container created without ENV HOME .... Can you delete the current container manually and then retry? (E.g., use docker ps -a to list all containers and then docker rm <container-id> to delete the old one.)

@akash3456
Copy link
Author

so i deleted the container changed the docker file to the following :

FROM solr
ENV HOME /var/solr/data

i get the following message when remoting into it;
image

@chrmarti
Copy link
Contributor

Maybe you're on an older version of the solr image? /var/solr exists in my version and is owned by user solr.

@akash3456
Copy link
Author

latest image is used

@akash3456
Copy link
Author

it seems the var/solr/data does not exist in the running container. on the solr user

@akash3456
Copy link
Author

can you show me how yours is working at all please?
via vscode remote

@akash3456
Copy link
Author

whats the default root user password when creating a linux container

@akash3456
Copy link
Author

how to run commands as root in dockerfile

@akash3456
Copy link
Author

its worked, remoed expose 8983
tanks

@vscodebot vscodebot bot locked and limited conversation to collaborators Jul 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
containers Issue in vscode-remote containers *duplicate Issue identified as a duplicate of another issue(s) info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

4 participants