vrtmrz / obsidian-livesync

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error mounting "/opt/docker-compose/couchdb/local.ini"

stormyark opened this issue · comments

This is my docker-compose.yml

services:
  couchdb:
    image: couchdb:latest
    container_name: couchdb
    environment:
      - COUCHDB_USER=username
      - COUCHDB_PASSWORD=password
    volumes:
      - ./data:/opt/couchdb/data
      - ./local.ini:/opt/couchdb/etc/local.ini
    ports:
      - 5984:5984
    restart: unless-stopped
    networks:
      - internet

networks:
  internet:
    external: true

root@stormy /opt/docker-compose/couchdb # docker compose up -d
[+] Running 0/1
⠸ Container couchdb 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 "/opt/docker-compose/couchdb/local.ini" to rootfs at "/opt/couchdb/etc/local.ini": mount /opt/docker-compose/couchdb/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