Skip to content
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

Error: no such file or directory: unknown #84

Open
weisiqian opened this issue Oct 15, 2021 · 2 comments
Open

Error: no such file or directory: unknown #84

weisiqian opened this issue Oct 15, 2021 · 2 comments

Comments

@weisiqian
Copy link

  1. First step:

install the plugin

docker run -d  -v /run/docker/plugins/:/run/docker/plugins/ -v U:/docker/plugin/local-persist/path/to/store/json/for/restart/:/var/lib/docker/plugin-data/ -v U:/docker/common/data:/data  cwspear/docker-local-persist-volume-plugin 
  1. Second Step
docker-compose -f .\docker-compose\mysql.yml up -d

here is the mysql.yml.

# mysql.yml
version: "3"
services:
  common-data:
    image: ubuntu:latest
    container_name: common-data
    restart: always
    privileged: true
    entrypoint: /bin/bash
    stdin_open: true
    tty: true
    volumes:
      # - "U:/docker/common/data:/data"
      # - "U:/docker/common/mysql:/var/lib/mysql"
      - "common-data:/data"
      # - "common-data:/var/lib/mysql"
  mysql:
    image: mysql:5.7.26
    ports:
      - "3306:3306"
    container_name: mysql
    restart: always
    privileged: true
    command:
      --character-set-server=utf8
      --lower_case_table_names=1
    volumes:
      - "common-data:/data"
      # - "common-data:/var/lib/mysql"
    environment:
      - MYSQL_ROOT_PASSWORD=123456
volumes:
  common-data:
    # external: true
    driver: local-persist
    driver_opts:
      mountpoint: U:/docker/common/data

then i got this Error

image

actually, that folder is exist

image

image

docker info

image

docker-compose version

docker-compose version 1.29.2, build 5becea4c

system is windows 10

image

help

@toddca
Copy link

toddca commented Nov 9, 2021

I am receiving the same error on Ubuntu 18.x

I created the volume without issues:
docker volume create -d local-persist -o mountpoint=/data/mssql --name=sqlvol01

I then attempted to use it.

image

@W1BTR
Copy link

W1BTR commented Aug 14, 2024

same issue on Ubuntu 24.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants