I have trouble with the use of bind mounts when using omero-server-docker. At the same time, with named volumes, all works as it should.
With the bind mounts, the server starts but does not allow to import images as if the data is read-only. Test was done by making a copy of working named volume solution into another location on the host.
Used start command:
docker run -d --name omero-server --restart unless-stopped --env-file omero.config.env \
-v /var/lib/docker-data/omero/data:/OMERO -p 4063:4063 -p 4064:4064 omero-server
Corresponding working solution with named volume:
docker run -d --name omero-server --restart unless-stopped --env-file omero.config.env \
-v omero-data:/OMERO -p 4063:4063 -p 4064:4064 omero-server
When checking permissions inside /OMERO, all seem to be the same.
Docker inspect returns
Not working bind mount
{
"Type": "bind",
"Source": "/var/lib/docker-data/omero/data",
"Destination": "/OMERO",
"Mode": "z",
"RW": true,
"Propagation": "rslave"
},
Working named volume:
{
"Type": "volume",
"Name": "omero-data",
"Source": "/var/lib/docker/volumes/omero-data/_data",
"Destination": "/OMERO",
"Driver": "local",
"Mode": "z",
"RW": true,
"Propagation": ""
},
Not sure how to debug it further.
I have trouble with the use of bind mounts when using omero-server-docker. At the same time, with named volumes, all works as it should.
With the bind mounts, the server starts but does not allow to import images as if the data is read-only. Test was done by making a copy of working named volume solution into another location on the host.
Used start command:
Corresponding working solution with named volume:
When checking permissions inside /OMERO, all seem to be the same.
Docker inspect returns
Not working bind mount
{ "Type": "bind", "Source": "/var/lib/docker-data/omero/data", "Destination": "/OMERO", "Mode": "z", "RW": true, "Propagation": "rslave" },Working named volume:
{ "Type": "volume", "Name": "omero-data", "Source": "/var/lib/docker/volumes/omero-data/_data", "Destination": "/OMERO", "Driver": "local", "Mode": "z", "RW": true, "Propagation": "" },Not sure how to debug it further.