-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't mount data (share_path) #2263
Comments
Hi @dasmehdix. Here's how I got it to work in docker-compose.override.yml:
just replace with your source location. and make sure your indentation is right since github is flattening them |
Let's say my dataset is in path
So, is this configuration true for my enviroment? Edit: |
I suppose, yes. Since you run docker under WSL, you need to provide path in WSL. |
Hello, Using CVAT directly in Windows 10 (without WSL).
My
Tried all possible combinations for the paths representations, but still can't mount the storage! Thanks a lot! |
If you’re doing it with hyperv you need to go into docker and share that directory with the docker instance
Jack Neil
CEO / Hank AI, Inc.
jack.neil@hank.ai
(w) +1.904.GET.HANK
(m) +1.803.466.7551
Sent via Superhuman iOS ( https://sprh.mn/?vip=jack.neil@hank.ai )
…On Thu, Oct 22 2020 at 9:55 AM, veer5551 < ***@***.*** > wrote:
Hello,
Using CVAT directly in Windows 10 (without WSL).
Tried mounting data and encountered the following errors.
ERROR: for cvat Cannot create container for service cvat: failed to mount
local volume: mount
E:\e\cvat_data:/var/lib/docker/volumes/cvat_cvat_share/_data, flags:
0x1000: no such file or directory
My docker-compose.override.yml file
version: "2.3"
services:
cvat_proxy:
environment:
CVAT_HOST:
"localhost"
cvat:
environment:
CVAT_SHARE_URL: "Mounted from
/e/cvat_data host directory"
volumes:
-
cvat_share:/home/django/share:ro
volumes:
cvat_share:
driver_opts:
type: none
device: /e/cvat_data
o: bind
Tried all possible combinations for the paths representations, but still
can't mount the storage!
Could you please have a look?
Thanks a lot!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub (
#2263 (comment)
) , or unsubscribe (
https://github.com/notifications/unsubscribe-auth/AGFRM5SBP5S4UFISGMJAW4TSMA2VZANCNFSM4SF2PDRA
).
|
Yes @jackneil, that was the first thing I did. Need to look a little deeper into the issue I guess! |
this seemed to work for me:
docker volume create --name cvat_share --opt type=none --opt device=/home/cbc/my_shared_folder --opt o=bind
|
Hey @ChrisCurrin, Thanks! |
I tried what is documented in https://github.com/openvinotoolkit/cvat/blob/master/cvat/apps/documentation/installation.md#share-path After excessive staring, head scratching, and ruling out other possible issues, I got the documented method to work. I simply had a service mixup (cvat vs cvat_proxy)... no error gets generated if you put a def in the wrong service, it just fails to work. One thing that would be helpful is that |
In adition to @ChrisCurrin answer: Keep the |
What is the cbc in the path /home/cbc/my_shared_folder? I have a folder called "share" located at /c/share but can't get it to work...so troubleshooting |
"cbc" is just my linux username.
If you're on windows, it may be
"device=/mnt/c/share"
…On Thu, 7 Oct 2021 at 11:59, c00lcoder ***@***.***> wrote:
this seemed to work for me:
1. create a volume
docker volume create --name cvat_share --opt type=none --opt device=/home/cbc/my_shared_folder --opt o=bind
1. tell docker to search for a volume created externally
# docker-compose.override.yml
version: "3.3"
services:
cvat:
environment:
CVAT_SHARE_URL: ""
volumes:
- cvat_share:/home/django/share:ro
volumes:
cvat_share:
external: true
What is the cbc in the path /home/cbc/my_shared_folder? I have a folder
called "share" located at /c/share but can't get it to work...so
troubleshooting
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2263 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB6RZ7RNCI3EO3WQLAY34YTUFVVPBANCNFSM4SF2PDRA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Thank you! This helped me figure out how to get it set up (switched to MAC)
On Sun, Oct 10, 2021 at 6:27 AM Christopher ***@***.***>
wrote:
… "cbc" is just my linux username.
If you're on windows, it may be
"device=/mnt/c/share"
On Thu, 7 Oct 2021 at 11:59, c00lcoder ***@***.***> wrote:
> this seemed to work for me:
>
> 1. create a volume
>
> docker volume create --name cvat_share --opt type=none --opt
device=/home/cbc/my_shared_folder --opt o=bind
>
> 1. tell docker to search for a volume created externally
>
> # docker-compose.override.yml
> version: "3.3"
>
> services:
> cvat:
> environment:
> CVAT_SHARE_URL: ""
> volumes:
> - cvat_share:/home/django/share:ro
>
> volumes:
> cvat_share:
> external: true
>
> What is the cbc in the path /home/cbc/my_shared_folder? I have a folder
> called "share" located at /c/share but can't get it to work...so
> troubleshooting
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <
#2263 (comment)
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AB6RZ7RNCI3EO3WQLAY34YTUFVVPBANCNFSM4SF2PDRA
>
> .
> Triage notifications on the go with GitHub Mobile for iOS
> <
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
>
> or Android
> <
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub
>.
>
>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2263 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AVPH7PCSVIESKB44HBJM47LUGFTBJANCNFSM4SF2PDRA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
I did this:
and got I tried to make it 777 and still got same error. EDIT: the directory I try to mount is s3 mounted to the system using fuse. It works fine with any other directory. |
This seemed to work for me on Mac M1: In In services & cvat_utils
& added this
On terminal
Delete the container, prune other volumes if needed and restart docker if this fails |
work like a charm |
For some reason none of the above, or the official docs worked for me. Instead I had to use a combination.
# docker-compose.override.yml
services:
cvat_server:
volumes:
- cvat_share:/home/django/share:ro
cvat_worker_import:
volumes:
- cvat_share:/home/django/share:ro
cvat_worker_export:
volumes:
- cvat_share:/home/django/share:ro
cvat_worker_annotation:
volumes:
- cvat_share:/home/django/share:ro
volumes:
cvat_share:
# this differs from the official docs
external: true
Not sure why the other ideas didn't work for me 🤷, insight appreciated. |
For everyone's benefit, this solution worked perfectly for me:
In the
Additionally, I have a shared folder mounted at
I then updated the
Finally, set the CVAT host environment variable and start the container:
After that, you can access CVAT using your specified |
Hi. I am newbie about docker usage. I have a dataset with lots of photos. I want to label them into CVAT. As mentioned in doc, I should mount my dataset into docker. I tried multiple things. I edit and rebuilded
docker-compose.yml
anddocker-composo.override.yml
but still docker can't acces my dataset. My OS is Windows 10 with WSL2. In the exampleshare_path
, the path is/mnt/share
. Do I need to give path of my dataset likeC:/Users/Desktop/.../
or do I need to give path of WSL2 for windows?The text was updated successfully, but these errors were encountered: