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

docker-compose up throws error : "invalid mount config for type "bind": bind source path does not exist" #618

Closed
Udit2206 opened this issue Feb 18, 2021 · 1 comment

Comments

@Udit2206
Copy link
Contributor

I am trying to install the repository according to the instructions given in the readme file.

System specs :

  1. Ubuntu 18.04 LTS
  2. Docker version 20.10.3, build 48d30b5
  3. docker-compose version 1.28.2, build 67630359

The steps I have followed are :

  1. Installed docker from https://docs.docker.com/install/linux/docker-ce/ubuntu/
  2. Added settings to manage docker as non-root user https://docs.docker.com/install/linux/linux-postinstall/
  3. Installed docker-compose from https://docs.docker.com/compose/install/

Then I cloned the repository and from inside the repository, I ran

  1. docker-compose build
  2. docker-compose up

The docker-compose build works fine, but on running docker-compose up, I am getting the following error :

Building with native build. Learn about native build in Compose here: https://docs.docker.com/go/compose-native-build/
Creating twlight_db_1 ... error

ERROR: for twlight_db_1  Cannot create container for service db: invalid mount config for type "bind": bind source path does not exist: /home/udit/Desktop/wiki/TWLight/conf/db/local.d

ERROR: for db  Cannot create container for service db: invalid mount config for type "bind": bind source path does not exist: /home/udit/Desktop/wiki/TWLight/conf/db/local.d
ERROR: Encountered errors while bringing up the project.

image

Already tried solutions :

  1. reinstalling docker, docker-compose and the repository.

I tried googling a lot but was not able to get a solution to this issue.

Kindly advise on how to solve this issue . Thanks in advance !

@Udit2206
Copy link
Contributor Author

Hi. Turns out that creating an empty folder as $PWD/conf/db/local.d solves the issue . I was expecting this folder to be non-empty and created during run-time, but creating an empty folder seems to solve the issue .

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

1 participant