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

How to Backup DevContainer State to Avoid Losing Changes on Rebuild #1225

Open
Ekanshh opened this issue Nov 8, 2024 · 1 comment
Open

Comments

@Ekanshh
Copy link

Ekanshh commented Nov 8, 2024

Hello!

I'm new to using VSCode DevContainers, and I’ve set up a development environment that I’d like to save. I've customized a lot of settings and installed various tools inside the container, and I'm worried that if I accidentally rebuild it, I might lose all those changes.

Is there a way to "backup" the current container image so that I can use it again later with all my current settings and installations intact?

Any step-by-step guidance would be greatly appreciated. Thanks in advance for your help! 😊

@bamurtaugh
Copy link
Member

Thanks for opening this issue! How did you customize your dev container? If the changes are included in the devcontainer.json or Dockerfile, and you've saved the files (and even potentially committed them to the source control of your repo), a rebuild will call upon those same file(s)!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants