I use Manjaro minimal arm iso on a Rock64 to start a openhab debian docker.
Openhab wants to synchronize time, so it should be started with
docker run \
--name openhab \
--net=host \
-v /etc/localtime:/etc/localtime:ro \
-v /etc/timezone:/etc/timezone:ro \
-v openhab_addons:/openhab/addons \
but /etc/timezone in Manjaro is a directory (or the directory was created by docker?) - not a file so I get, when I want to start the docker:
Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/etc/timezone" to rootfs at "/etc/timezone": mount /etc/timezone:/etc/timezone (via /proc/self/fd/6), flags: 0x5001: 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
Error: failed to start containers: 5bc5712efcfe
Ok I created a file /etc/timezone and deleted the directory, which was empty - but was this correct, or shall I link it somewhere else?