openvscode-server icon indicating copy to clipboard operation
openvscode-server copied to clipboard

Add Persistent Volume in Docker

Open orappold opened this issue 2 years ago • 4 comments

I'm not able to map a persistent volume to the config & workspace folder. In that way, every time I update the container, everything is gone. I'm aware, that the purpose is rather for temporary use cases, but I personally want to create an persistent IDE on my NAS which is always and everywhere available.

If someone could help how to set up the compose file it would be awesome. If not a feature request, please point me to the right direction.

THX

orappold avatar Nov 06 '22 14:11 orappold

Does this help? https://plusreturn.com/blog/open-vscode-server-offline-deployment-for-nodejs-development/

paladyne-io avatar Nov 07 '22 08:11 paladyne-io

@orappold do you still need help?

jeanp413 avatar Nov 09 '22 23:11 jeanp413

Probably because the container will overwrite each time you rebuild or vice versa? I had to use rsync for a Wordpress container (entrypoint script, so loaded per container not image):

rsync -Praz --progress /wordpress/ /var/www/html

/wordpress is the dist source files

EmilMoe avatar Nov 10 '22 08:11 EmilMoe

This might be help to persistent volume

be at workspace directory

volumes:
  - ./edge-vol:/usr/src/app

shivendratiwari7566 avatar Nov 28 '22 08:11 shivendratiwari7566