New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Anonymous readonly volumes #45297
Comments
How are you going to put data into the volume? |
In my case it's an rclone mount volume and the remote already has data. |
I have the same issue. I want to mount into the container a NFS volume as read-only. The NFS mount / NFS volume should be set only when this container is started and then, automatically unmount / destroyed when the container is destroyed. Note that this behavior works if I remove the Currently, my tricky workaround is to create the volume with It will be great to support |
I think the original intention behind forbidding this is it being a sort of nonsense condition with the It sounds like some volume drivers have adopted unnamed volumes with other ways to locate their content, e.g. via the In a world where |
FWIW, I too have abandoned the volume driver approach in newer installations and instead I now configure the rclone mount via
and then mount this into the container: It works just as well, if not better. Issues with the mount can be analyzed independently of issue with the container and just like the volume driver plugin, it only requires one more piece of configuration, but in a well-expected place. |
I'm also hitting this with a remote NFS volume which already contains data. If this restriction is artificial can we consider lifting it? |
Description
This feels like a bug but since there's a dedicated message saying that it isn't supported I guess it can be classified as a feature request.
When I try to create a volume that is both anonymous and readonly like this:
docker run --mount 'target=/ms,volume-driver=rclone,volume-opt=remote=ms:,readonly' ...
I get:
I don't understand what one has to do with the other.
Using a readwrite volume is bad for the usual reasons and using a named volume is bad because as far as I know those are not automatically removed when the container is removed.
The text was updated successfully, but these errors were encountered: