docker-desktop
docker-desktop copied to clipboard
Persistent Firefox data
Like I said in my other issue, I use Firefox from docker-desktop, like this:
ssh [email protected] -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?
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.