2

My dev Container is gone, but the volume is still there. How can I create a new container with this volume as /workspaces mount? In the volume is a .devcontainer.json, which could be used to recreate the container. But how?

starball
  • 20,030
  • 7
  • 43
  • 238
tux007
  • 282
  • 1
  • 3
  • 17
  • so 1. Locate&restore it ([win](https://stackoverflow.com/q/43181654/592355), [mac-like](https://forums.docker.com/t/host-path-of-volume/12277)) 2. Once you open vs code in a folder with a devcontainer.json, a dialog should offer you to start that.. (Alternatively Ctrl+Shift+P Devcon...) (??) – xerx593 Mar 22 '23 at 19:55
  • well, I'm using a remote docker-host. So it is not so easy to locate and restore. Also I think there must be a possibility to create a container with an existing image! – tux007 Mar 23 '23 at 19:06

0 Answers0