skip to Main Content

Below it is my docker-compose, now i can build the container, but I cannot load the file in Datasets into the application, the error says that it cannot find the file specified

version: '3.8'
services:
  finder-intelligence:
    build: .
    image: finder_ai:latest
    volumes:
      - type: bind
        source: mydata
        target: /mnt/Datasets
        volume:
          nocopy: false
volumes:
  mydata:
    driver: local
    driver_opts:
      o: bind
      type: none
      device: /mnt/Datasets

2

Answers


  1. Chosen as BEST ANSWER

    in the end the compose file was fine, my mistake, due to inexperience, i was running docker run instead of docker-compose run


  2. Try to just pass it as:

    volumes:
          - /host/path/to/share:/container/path/to/share
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search