question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

how to mount a share path for the big dataset in windows os.

See original GitHub issue

Hi, I am sorry for a noob question but I want to know how to mount a shared path for the big dataset. I tried to follow the documentation on the Share Path

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

but I am getting this error while building

$ 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

I also tried to post my problem on Gitter no reply **what procedure do I need to follow to work this out please help me. **

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
ronzhin-dmitrycommented, Nov 15, 2021

Hi, I am using Windows. If I want to cvat to connect local directory at C:\mnt\share Then I should not change anything in override.yml file copied in the guide right? But it still doesnt connect. What am I missing here? It has been frustrating

Hello! I’m having similar issues, I cannot mount directory in docker from WSL. Here are some illustrations of how this whole process looks like:

cvat-error

Did you manage to solve the problem?

Ok, so thanks to issue #2315 (https://github.com/openvinotoolkit/cvat/issues/2315) and particularly answer of https://github.com/ChrisCurrin I found out that it can be fixed manually on WSL. The actions he described could be performed after cleaning up containers and volumes, make external volume in docker-compose.override.yml and add volume manually via docker volume create --name cvat_share --opt type=none --opt device=YOUR-PATH --opt o=bind

After adding it manually everything seemed to be working fine

P.S.: One thing to mention: under WSL in Windows I had to write win-style path, i.e. YOUR-PATH = C:\someFolder Otherwise powershell still resulted in mounting error.

1reaction
nmanoviccommented, Apr 27, 2020

@MannAgrawal , you need to create the directory. Please run mkdir /mnt/share or sudo mkdir /mnt/share (or choose any other directory and update docker-compose.override.yml accordingly). After that run your up -d command again. It should be without errors. Put your data into /mnt/share directory and inside CVAT you will be able to use it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

how to mount a share path for the big dataset in windows os ...
In the docker-compose file, you are creating the cvat_share volume with device /mnt/share . The device should be an existing path on the ......
Read more >
Mounting File Systems From Windows Instances
Go to Start and scroll down to Apps. · In the Windows System section, press Ctrl+Shift and click Command Prompt.
Read more >
How to mount Windows share on Red Hat Enterprise Linux ...
Windows share can be mounted on RHEL system using cifs option of mount command as : · You can specify iocharset to convert...
Read more >
Map a network drive in Windows - Microsoft Support
Map a network drive in Windows · Open File Explorer from the taskbar or the Start menu, or press the Windows logo key...
Read more >
The Ultimate Guide to Windows Shared Drives in 2022
A shared drive can be directly mapped on a destination computer, where a separate drive or resource (like a printer) can be shared...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found