Can't run docker images. Error like \\\"not a directory\\\"\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)?

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Can't run docker images. Error like \\\"not a directory\\\"\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)?

      Hi! I'm new to docker and not really that experienced in OMV, so I'm out of my witts here.

      Whenever I try to start a docker image (so far I've tried Plex, Emby, JellyFin), I get an error similar to this:

      Source Code

      1. 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; docker run -d --restart=always --privileged -v /etc/localtime:/etc/localtime:ro --net=host -e PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" -e ASPNETCORE_URLS="http://+:80" -e DOTNET_RUNNING_IN_CONTAINER="true" -e DOTNET_VERSION="3.0.0-preview4-27615-11" -v "/sharedfolders/6TBroot/AppData/JellyFin/Cache":"/cache":rw -v "/sharedfolders/6TBroot/JellyFin":"/config":rw --name="Jellyfin" "jellyfin/jellyfin:latest" 2>&1' with exit code '125': 2185f0d47f03af236add13e4c4369b491d18a8c905e35f5cf4f9b7581130d803
      2. docker: Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "process_linux.go:430: container init caused \"rootfs_linux.go:58: mounting \\\"/etc/localtime\\\" to rootfs \\\"/var/lib/docker/overlay2/c396a12894dfd8d8b85aa65ad4aa5dbed5fe0200f00aa4f8f461938292e0aecc/merged\\\" at \\\"/var/lib/docker/overlay2/c396a12894dfd8d8b85aa65ad4aa5dbed5fe0200f00aa4f8f461938292e0aecc/merged/usr/share/zoneinfo/UTC\\\" caused \\\"not a directory\\\"\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type. in /usr/share/php/openmediavault/system/process.inc:182
      3. Stack trace:
      4. #0 /usr/share/openmediavault/engined/rpc/docker.inc(607): OMV\System\Process->execute()
      5. #1 [internal function]: OMVRpcServiceDocker->runContainer(Array, Array)
      6. #2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
      7. #3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('runContainer', Array, Array)
      8. #4 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Docker', 'runContainer', Array, Array, 1)
      9. #5 {main}
      The system is a pretty fresh installation. Time zone and locales have been changed to CEST/de_DE.UTF-8.

      System:
      RockPro64
      OMV: 4.1.23-1
      Linux media 4.4.167-1213-rockchip-ayufan-g34ae07687fce #1 SMP Tue Jun 18 20:44:49 UTC 2019 aarch64
      Debian 9.9

      Docker:

      Client: Docker Engine - Community

      Version: 19.03.1
      API version: 1.40
      Go version: go1.12.5
      Git commit: 74b1e89
      Built: Thu Jul 25 21:35:21 2019
      OS/Arch: linux/arm
      Experimental: false


      Server: Docker Engine - Community
      Engine:
      Version: 19.03.1
      API version: 1.40 (minimum version 1.12)
      Go version: go1.12.5
      Git commit: 74b1e89
      Built: Thu Jul 25 21:29:21 2019
      OS/Arch: linux/arm
      Experimental: false
      containerd:
      Version: 1.2.6
      GitCommit: 894b81a4b802e4eb2a91d1ce216b8817763c29fb
      runc:
      Version: 1.0.0-rc8
      GitCommit: 425e105d5a03fabd737a126ad93d62a9eeede87f
      docker-init:
      Version: 0.18.0
      GitCommit: fec3683

      Help is much appreciated!