Docker Community Forums

Share and learn in the Docker community.

Mysql docker compose copy csv to table

Hello, I am very new using Docker. I want to populate a mysql table from a csv file. My yaml file is:

version: '3.2'

services:

  mysql-dev:
    image: mysql:8.0.2
    volumes:
    - type: volume
    source: my-db
    target: /home/pakin/Documents/coppel/db-on-docker
   command: --secure-file-priv=/home/pakin/Documents/coppel/db-on-docker
environment:
  MYSQL_ROOT_PASSWORD: 1234
  MYSQL_DATABASE: pruebas
ports:
  - "3308:3306"

# Names our volume
volumes:
my-db:

I can see that the secure_file_priv changes to the path i want but when I run the copy from query there are an error:

…not such path or directory

I appreciate any help! Thanks!