obsidian-livesync
obsidian-livesync copied to clipboard
Error when trying to start livesync
I attempted to run this command
docker run --rm -it -e COUCHDB_USER=admin -e COUCHDB_PASSWORD=password -v /livesync/local.ini:/opt/couchdb/etc/local.ini -p 5984:5984 couchdb
And then i get this error
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/livesync/local.ini" to rootfs at "/opt/couchdb/etc/local.ini": mount /livesync/local.ini:/opt/couchdb/etc/local.ini (via /proc/self/fd/8), flags: 0x5000: 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. ERRO[0000] error waiting for container
I attempted to run this command
docker run --rm -it -e COUCHDB_USER=admin -e COUCHDB_PASSWORD=password -v /livesync/local.ini:/opt/couchdb/etc/local.ini -p 5984:5984 couchdb
And then i get this error
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/livesync/local.ini" to rootfs at "/opt/couchdb/etc/local.ini": mount /livesync/local.ini:/opt/couchdb/etc/local.ini (via /proc/self/fd/8), flags: 0x5000: 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. ERRO[0000] error waiting for container
hello,where is your /livesync/local.ini,That doesn't seem to be your absolute path.
Thank you, that was the issue. Im new-ish to cli version of linux and didnt know there a path before what it showed when i was in the directory
Hey want do you mean by absolute path? I'm facing the same issue
⠸ Container obsidian-livesync Starting 0.3s
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/root/docker/obsidian-livesync/local.ini" to rootfs at "/opt/couchdb/etc/local.ini": mount /root/docker/obsidian-livesync/local.ini:/opt/couchdb/etc/local.ini (via /proc/self/fd/6), flags: 0x5000: 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