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 with docker compose on windows #11

Open
riodda opened this issue Jan 3, 2022 · 5 comments
Open

Error with docker compose on windows #11

riodda opened this issue Jan 3, 2022 · 5 comments

Comments

@riodda
Copy link

riodda commented Jan 3, 2022

PS C:\Users\Dario\exchanges_dashboard> docker-compose up -d
time="2022-01-03T14:39:18+01:00" level=warning msg="The \"PWD\" variable is not set. Defaulting to a blank string."
time="2022-01-03T14:39:18+01:00" level=warning msg="The \"PWD\" variable is not set. Defaulting to a blank string."
time="2022-01-03T14:39:18+01:00" level=warning msg="The \"PWD\" variable is not set. Defaulting to a blank string."
1 error(s) decoding:

* error decoding 'Volumes[1]': invalid spec: :/metabase-data: empty section between colons
@riodda
Copy link
Author

riodda commented Jan 18, 2022

Tryed again after some cleanup but still have errors:

WARNING: Image for service scraper was built because it did not already exist. To rebuild this image you must use `docker-compose build` or `docker-compose up --build`.
Pulling metabase-app (metabase/metabase:latest)...
latest: Pulling from metabase/metabase
97518928ae5f: Pull complete
fc454529b43b: Pull complete
89840520f66d: Pull complete
f93c0a8cfa0e: Pull complete
304a1a5b8733: Pull complete
Digest: sha256:2017f24c64923853d0811e47228482080d051d9fce72df06b4c52e3a1debbead
Status: Downloaded newer image for metabase/metabase:latest
Creating exchanges_dashboard_scraper_1 ... done
Creating metabase                      ... error

ERROR: for metabase  Cannot create container for service metabase-app: create .: volume name is too short, names should be at least two alphanumeric characters

ERROR: for metabase-app  Cannot create container for service metabase-app: create .: volume name is too short, names should be at least two alphanumeric characters
ERROR: Encountered errors while bringing up the project.

@riodda
Copy link
Author

riodda commented Feb 6, 2022

Still stuck on windows

Starting exchanges_dashboard_scraper_1 ... done
Creating metabase                      ... error

ERROR: for metabase  Cannot create container for service metabase-app: create .: volume name is too short, names should be at least two alphanumeric characters

ERROR: for metabase-app  Cannot create container for service metabase-app: create .: volume name is too short, names should be at least two alphanumeric characters
ERROR: Encountered errors while bringing up the project.

@FedeGarcia00
Copy link

Still stuck on windows

Starting exchanges_dashboard_scraper_1 ... done
Creating metabase                      ... error

ERROR: for metabase  Cannot create container for service metabase-app: create .: volume name is too short, names should be at least two alphanumeric characters

ERROR: for metabase-app  Cannot create container for service metabase-app: create .: volume name is too short, names should be at least two alphanumeric characters
ERROR: Encountered errors while bringing up the project.

could you solve this? same problem

@cyberjunky
Copy link

All, open docker-compose.yml and change this line

      - $PWD:/metabase-data

to this:

      - $PWD/:/metabase-data

@JhorAVi
Copy link

JhorAVi commented Jun 13, 2023

Your solution partially works but some features are missing. The one that perfectly works for me is changing it to its absolute path in my drive:

eg: - C:\exchanges_dashboard:/metabase-data

Also, the timezone path is different in Windows so I changed from

  `- /etc/timezone:/etc/timezone:ro`
  `- /etc/localtime:/etc/localtime:ro`
  
  to
  
  `- TZ=America/New_York  # Set your desired timezone here`

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

4 participants