我只想为 couch db 创建一个 docker 容器,并且 docker 文件的内容非常简单。我在使用 ARM 处理器的 Apple M1 上运行这个程序,听说有很多问题。当我尝试启动 docker 容器时出现此错误。
couchdb:
container_name: couchdb
image: apache/couchdb:3.2.2
volumes:
- /opt/couchdb-322.data:/opt/couchdb/data:delegated
- /opt/couchdb-322.etc/docker.ini:/opt/couchdb/etc/local.d/docker.ini:delegated
environment:
- COUCHDB_USER=p6auth
- COUCHDB_PASSWORD=Vignon34B
ports:
- "5984:5984"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5984"]
interval: 15s
timeout: 2s
retries: 20
start_period: 1m
错误信息
[+] Running 1/0
✔ Container couchdb Created 0.0s
Attaching to couchdb
couchdb | /docker-entrypoint.sh: line 69: /opt/couchdb/etc/local.d/docker.ini: Is a directory
couchdb exited with code 1