Skip to content

Instantly share code, notes, and snippets.

@pangyuteng
Created May 21, 2019 04:09
Show Gist options
  • Save pangyuteng/1e0402a54ce276c67036071f694e6cc9 to your computer and use it in GitHub Desktop.
Save pangyuteng/1e0402a54ce276c67036071f694e6cc9 to your computer and use it in GitHub Desktop.
cvat share - via mount

use the share option in CVAT per davidblom cvat-ai/cvat#203

update CVAT docker-compose.yml to follow the below, where /home/david/shared_data is the local share.

version: "2.3"

services:
  cvat:
    volumes:
      - cvat_share:/home/django/share:ro
      - cvat_data:/home/django/data
    environment:
      CVAT_SHARE_URL: "Shared directory"
    ports:
      - "80:8080"

volumes:
  cvat_data:
    driver_opts:
      type: none
      device: /home/david/data
      o: bind
  cvat_share:
    driver_opts:
      type: none
      device: /home/david/shared_data
      o: bind
@ishumann
Copy link

@pangyuteng Hi, I want to know how you created /home/david/shared_data directory. I am trying to create mnt/share directory. I don't know how to use docker. please help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment