đây là Docker soạn tập tin của tôiLàm thế nào để chia sẻ các tập tin địa phương để Docker chứa Trong bầy đàn với Docker-soạn
version: '2'
services:
demoui:
image: demoimage
ports:
- "80:8000"
volumes:
- ./democonfig/config.js:/usr/local/tomcat/webapps/demo-ui/config.js
- ./logs/demo-ui:/usr/local/tomcat/logs
restart: unless-stopped
tập tin soạn Docker này hoạt động khi tôi còn trong nút duy nhất. Sau khi di chuyển đến docker swarm. Nó không làm việc. Nó ném các lỗi sau
ERROR: for demoui Error response from daemon: rpc error: code = 2 desc = "oci runtime error: could not synchronise with container process: not a directory"
Traceback (most recent call last):
File "<string>", line 3, in <module>
File "compose/cli/main.py", line 63, in main
AttributeError: 'ProjectError' object has no attribute 'msg'
docker-compose returned -1
Vì vậy, câu hỏi là
Làm thế nào để chia sẻ tập tin để swarm cụm?
Hoặc bạn cần sao chép tất cả tệp vào hình ảnh và chạy tệp?
Vui lòng chia sẻ một số tài liệu về khối lượng docker với bầy đàn.