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

CLI to launch vscode in a remote container (using devcontainer.json) #2761

Closed
tmaslach opened this issue Apr 14, 2020 · 4 comments
Closed

CLI to launch vscode in a remote container (using devcontainer.json) #2761

tmaslach opened this issue Apr 14, 2020 · 4 comments
Labels
containers Issue in vscode-remote containers *duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality

Comments

@tmaslach
Copy link

My project has a .devcontainer/devcontainer.json file. When I open vscode in my project's folder, a dialog pops up asking if I want to open the folder up in the container. This is nice.

But, is there any way to automatically specify on the command line to do this? So I don't have to start vscode, then restart it once again? It's a minor usability issue, but would be nice to make a little more seamless.

I see several examples showing vscode://vscode-remote uri syntax. But, everything I've seen so far relates to existing containers and ssh. I have not seen anything related to using the information in the devcontainer.json. Is there a way to do this? If not, I think such a feature would be valuable.

I have posted on stack overflow, but have not gotten any responses.

Thanks!

@egamma
Copy link
Member

egamma commented Apr 22, 2020

@tmaslach it is currently not possible to open a remote container using the CLI.

As a workaround there is an entry for the remote container in the Open Recent menu.

@tmaslach
Copy link
Author

@egamma - I appreciate the response. I'll stop looking for a way to do it now :)

It would be nice to have that at some point in the future. I imagine there'd be some nice way to fit it into the URI specifier

Thanks!

@EricHripko
Copy link

+1 to this, looks like one could do this for Remote - WSL too with vscode://vscode-remote/wsl+Ubuntu-18.04/home/myuser/myproject. Would be great if we had an equivalent for Remote - Containers where giving a host path would reopen the project in a Remote - Container.

@egamma
Copy link
Member

egamma commented Oct 5, 2020

Duplicate of #2133

@egamma egamma marked this as a duplicate of #2133 Oct 5, 2020
@egamma egamma closed this as completed Oct 5, 2020
@egamma egamma added the *duplicate Issue identified as a duplicate of another issue(s) label Oct 5, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Nov 19, 2020
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) feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

4 participants