Skip to content

[BUG] uc doens't respect options specified in compose file for nfs mounts #210

@zombiehoffa

Description

@zombiehoffa

Describe the bug
If you define a volume and put in the options to mount an nfs volume they are agnored and the volume is created with no options.

i.e.
volume:
somemount:/somemountincontainer

~

volumes:
somemount:
driver_opts:
type: "nfs"
o: "addr=ipaddress,nolock,soft"
device: ":/nfslocation like /mnt/mystuff"

If you do this in compose then docker compose up -d and inspect the created volume you see the driver opts and it works as an nfs mount.

You uc deploy the exact same yaml file and you docker inspect the created volume and the options are empty and it's just an empty local volume, not an nfs mount.

Expected behavior

uc deploy should give the same result as running docker compose up -d with the same compose volume data, it should respect driver opts and create a functioning nfs volume just like straight docker does.

Environment:

  • Uncloud versions: the latest one

  • OS version (uname -a): ubuntu 24.04

    • Client (control node):
    • Server:

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions