很抱歉出现了一个noob问题,但是我想知道如何为大数据集挂载共享路径。我试着在共享路径上遵循文档
version: "2.3"
services:
cvat:
environment:
CVAT_SHARE_URL: "Mounted from /mnt/share host directory"
volumes:
- cvat_share:/home/django/share:ro
volumes:
cvat_share:
driver_opts:
type: none
device: /mnt/share
o: bind但是我在构建
$ docker-compose -f docker-compose.yml -f docker-compose.override.yml -f components/openvino/docker-compose.openvino.yml -f cvat/apps/dextr_segm
entation/docker-compose.dextr.yml -f components/auto_segmentation/docker-compose.auto_segmentation.yml -f components/tf_annotation/docker-compo
se.tf_annotation.yml -f components/analytics/docker-compose.analytics.yml up -d
WARNING: The no_proxy variable is not set. Defaulting to a blank string.
WARNING: The http_proxy variable is not set. Defaulting to a blank string.
WARNING: The https_proxy variable is not set. Defaulting to a blank string.
cvat_redis is up-to-date
cvat_db is up-to-date
cvat_elasticsearch is up-to-date
cvat_kibana is up-to-date
cvat_logstash is up-to-date
Creating cvat ... error
ERROR: for cvat Cannot create container for service cvat: failed to mount local volume: mount /mnt/share:/var/lib/docker/volumes/cvat_cvat_share/_data, flags: 0x1000: no such file or directory
ERROR: for cvat Cannot create container for service cvat: failed to mount local volume: mount /mnt/share:/var/lib/docker/volumes/cvat_cvat_share/_data, flags: 0x1000: no such file or directory
ERROR: Encountered errors while bringing up the project.$ Docker version
Client: Docker Engine - Community
Version: 19.03.8
API version: 1.40
Go version: go1.12.17
Git commit: afacb8b
Built: Wed Mar 11 01:23:10 2020
OS/Arch: windows/amd64
Experimental: true,我需要遵循什么程序才能解决这个问题?请帮帮我,
发布于 2020-05-19 16:36:41
在停靠-撰写文件中,您将使用设备cvat_share创建/mnt/share卷。设备应该是主机OS上的一个现有路径(在本例中是Windows),但是/mnt/share看起来不像一个有效的Windows (它没有驱动器号)。
您应该检查共享文件所在的文件夹(在Windows主机上),并尝试更改设备路径(例如,如果文件夹路径为C:\path\to\share,则设备路径应为/C/path/to/share):
volumes:
cvat_share:
driver_opts:
type: none
device: /C/path/to/share
o: bind不要忘记相应地更改CVAT_SHARE_URL,以便在应用程序中具有正确的消息。
https://stackoverflow.com/questions/61453458
复制相似问题