Sharedfolders problem with docker

  • I am having problems creating new sharedfolders. OMV always throws an error concerning docker. When looking at outputs, it seems like the OMV process is trying to unmount and remount my docker-sharedfolder, which of course doesn't work when docker is running. Has anyone come across this problem? Does anyone have an idea how to solve this?


    Code
    Error #0:
    OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; systemctl restart 'sharedfolders-dockerfiles.mount' 2>&1' with exit code '1': Job for sharedfolders-dockerfiles.mount failed.
    See "systemctl status sharedfolders-dockerfiles.mount" and "journalctl -xe" for details. in /usr/share/php/openmediavault/system/process.inc:182

    When I then run

    Code
    systemctl status sharedfolders-dockerfiles.mount

    I get the following output:


    ● sharedfolders-dockerfiles.mount - Mount shared folder dockerfiles to /sharedfolders/dockerfiles

    Loaded: loaded (/etc/systemd/system/sharedfolders-dockerfiles.mount; enabled; vendor preset: enabled)

    Active: active (mounted) (Result: exit-code) since Wed 2020-12-09 15:27:15 GMT; 4min 5s ago

    Where: /sharedfolders/dockerfiles

    What: /dev/mapper/sdb-crypt

    Process: 32390 ExecUnmount=/bin/umount /sharedfolders/dockerfiles (code=exited, status=32)

    Tasks: 0 (limit: 4915)

    Memory: 208.0K

    CPU: 27ms

    CGroup: /system.slice/sharedfolders-dockerfiles.mount


    Dec 08 14:59:57 OMV systemd[1]: Failed unmounting Mount shared folder dockerfiles to /sharedfolders/dockerfiles.

    Dec 09 15:21:30 OMV systemd[1]: Unmounting Mount shared folder dockerfiles to /sharedfolders/dockerfiles...

    Dec 09 15:21:30 OMV systemd[1]: sharedfolders-dockerfiles.mount: Mount process exited, code=exited status=32

    Dec 09 15:21:30 OMV systemd[1]: Failed unmounting Mount shared folder dockerfiles to /sharedfolders/dockerfiles.

    Dec 09 15:21:48 OMV systemd[1]: Unmounting Mount shared folder dockerfiles to /sharedfolders/dockerfiles...

    Dec 09 15:21:48 OMV systemd[1]: sharedfolders-dockerfiles.mount: Mount process exited, code=exited status=32

    Dec 09 15:21:48 OMV systemd[1]: Failed unmounting Mount shared folder dockerfiles to /sharedfolders/dockerfiles.

    Dec 09 15:27:15 OMV systemd[1]: Unmounting Mount shared folder dockerfiles to /sharedfolders/dockerfiles...

    Dec 09 15:27:15 OMV systemd[1]: sharedfolders-dockerfiles.mount: Mount process exited, code=exited status=32

    Dec 09 15:27:15 OMV systemd[1]: Failed unmounting Mount shared folder dockerfiles to /sharedfolders/dockerfiles.



    OMV6 i5-based PC

    OMV6 on Raspberry Pi4

    OMV5 on ProLiant N54L (AMD CPU)

  • It's a bad idea to use /sharedfolders paths with dockers. This has caused so many problems that populating /sharedfolders was deprecated in OMV5 by default.


    Use absolute paths instead.

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

  • thanks. I understand.

    Unfortunately its impossible to use absolute paths because the OMV drop down for docker files only presents a list of sharedfolders.

    any tips on how to get around this?

    OMV6 i5-based PC

    OMV6 on Raspberry Pi4

    OMV5 on ProLiant N54L (AMD CPU)

  • Are you on OMV 4 or 5 with this problem? What interface are you using?

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

  • I am no longer on OMV 4 but when I was I had no problems using absolute paths.

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!