siomiz / chrome

Docker Automated Build Repository for siomiz/chrome -- Google Chrome via VNC (or via Chrome Remote Desktop)
https://hub.docker.com/r/siomiz/chrome/
MIT License
201 stars 125 forks source link

is it possible to save chrome config on container start? #11

Closed netblink-cobreen closed 5 years ago

netblink-cobreen commented 5 years ago

I'm using siomiz/chrome with my extensions, and sometimes I need to restart docker. How can I save browser config?

siomiz commented 5 years ago

Assuming you're accessing via VNC? /home/chrome contains the Chrome User Data Directory, where all personalizations are stored, so you want to either use a volume or a bind mount there, ex.

docker run -d --mount type=bind,source=/path/on/host,target=/home/chrome siomiz/chrome

where /path/on/host is somewhere on your Docker host that can keep data across restarts. See https://docs.docker.com/storage/.