-
Notifications
You must be signed in to change notification settings - Fork 266
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
Attach to container config #1785
Comments
thanks @Chuxel .. I read that, but it didn't quite do what I need, since the container-name ends up in another configuration bound per image, per user. I want it bound to the running container name, and the folder. The usecase is that there is another tool that starts the dev-containers, but I want a unified way of developing on them. Just like the |
👍🏻 It would be definitely great, if we'll have an ability to store config files for attached connections under VCS in the project dir - to maintain & share this config between team members |
Yes, the worst part of it, is that according to docs,it seems possible but it isn't. I've following the rules from: |
I have a command line tool that lets me copy files from my local machine to a remote devcontainer. It is a convenience wrapper for scp. But for this to work, I need to be able to deterministically get the container name for the remote devcontainer. I rely on hacky workarounds to run docker ps on the remote VM to scrape out the image name, but I would prefer generating a deterministic name for the remote container via devcontainer.json (which I also generate using my tool). Has there been any progress on this? Happy to provide more details of my scenario if it helps. Thx! |
Same as author problem: i have project where docker compose rely on some logic and env variables, it can not be started from vscode using devcontainer.json |
A config that describes actions to take when attaching to a running container would simplify team collaboration. Currently I work around by a combination of creating a custom vscode extension and shell scripts. A lot of that complexity could be replaced by this feature. |
We've recently added support for adding dev container configuration to image or container labels (specifically the So, as long as the mechanism you are using allows you to set labels (e.g. like Docker Compose), you'll be able to do quite a bit without a The devcontainer.json reference indicates which properties can be used this way. @chrmarti Should we use this for the red dot issue on this topic? |
@Chuxel I will open a separate issue to track the plan item. Thanks. |
Any update about this issue, can we now maintain the attached container devcontainer config in the workspace? |
Workaround that might be helpful, is to Symlink your tracked configs in your repo to the path where vscode actually read the configs:
|
Any update on this? |
Not sure if there are any reasons behind it, but on some of my containers, I want to keep track of them on my own, but attach to them with ease using vscode.
There should be a configuration option to attach to a running container, not just build them.
Something like this:
The text was updated successfully, but these errors were encountered: