We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Right now, my current setup looks something like this,
driver = DriverConfig( name=None, options={ "o": "nfsvers=4.0,noatime,nodiratime,soft,addr=x.x.x.x,ro", #read-only "device": ":/path/to/data", "type": "nfs", }, )
mount = Mount( type="volume", source=None, target="/data", driver_config=driver, )
container = ContainerSpec( image=image_name, command=command, args=arguments, env=environment, mounts=[mount] ... ) task = TaskTemplate( container_spec=container, restart_policy=RestartPolicy("none"), placement=placement, resources=resources, ... ) service = client.create_service( task, name=name, networks=["swarm-attachable-network"] , endpoint_spec=EndpointSpec(mode="vip"), )
Alternatively, there is also an option to specify a mount to be read-only via,
mount = Mount( type="volume", source=None, target="/data", driver_config=driver, read_only=True, # read-only ... )
This fails however with the following error,
"invalid mount config for type "volume": must not set readonly mode when using anonymous volumes"
In this scenario what is the best practice to deploy NFS mounts?
uuid
The text was updated successfully, but these errors were encountered:
See also related issue moby/moby#45297
Sorry, something went wrong.
No branches or pull requests
Current Setup
Right now, my current setup looks something like this,
Question
Alternatively, there is also an option to specify a mount to be read-only via,
This fails however with the following error,
In this scenario what is the best practice to deploy NFS mounts?
uuid
identifier?The text was updated successfully, but these errors were encountered: