rogaha / docker-desktop

Docker Desktop enables you to create virtual desktops that can be accessed remotely. It comes with Firefox and Libreoffice already installed!
1.15k stars 287 forks source link

Persistent Firefox data #20

Open mascip opened 10 years ago

mascip commented 10 years ago

Like I said in my other issue, I use Firefox from docker-desktop, like this:

ssh docker@172.17.42.1 -p 49153 firefox

My problem is the lack of persistence. When I kill the container and restart a new one with the same name, my Firefox profile, bookmakers, etc, are gone.

I've tried to add this argument to 'docker run' :

-v /home/mascip/docker-desktop/firefox-data/$container_name:/home/docker/.mozilla/firefox/

so that Firefox's data would get saved on the host in /home/mascip/docker-desktop/firefox-data/$container_name. But it does work, because volumes mounted with -v are read-only.

Is there a way to achieve what I want? Am I missing something?

mascip commented 10 years ago

We solved it here: https://github.com/paimpozhil/DockerX2go/issues/1

The solution was to create a data-only docker container for the data, with a /home/docker/.mozilla/firefox volume, which contains my Firefox profile. I also had to solve a tiny permission issue.