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: Error response from daemon: create pwd: "pwd" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path. #35

Open
marcojr opened this issue Apr 15, 2020 · 4 comments

Comments

@marcojr
Copy link

marcojr commented Apr 15, 2020

Just insatalled the docker image, but when I try to run it using the command on the documentation:

docker run --name cocorico -ti -p 80:80 -p 3306:3306 -p 9001:9001 -p 27017:27017 -v pwd:/cocorico -v pwd/tmp/mysql:/var/lib/mysql -v pwd/tmp/mongo:/data/db -e HOST_UID=$UID cocolabs/cocorico

it fails.

I am running docker in a windows 10 desktop.

@White7292
Copy link

White7292 commented May 6, 2020

Replace pwd with your present working directory.

If you're using windows 10, it should look something like C:\Users\your-user-name-goes-here\.................\cocorico, which points to the cocorico github repository you cloned from here.

@elhayadi
Copy link

elhayadi commented Jul 31, 2021

docker run --name cocorico -ti -p 80:80 -p 3306:3306 -p 9001:9001 -p 27017:27017 -v ${PWD}:/cocorico -v ${PWD}/tmp/mysql:/var/lib/mysql -v ${PWD}/tmp/mongo:/data/db -e HOST_UID=$UID cocolabs/cocorico
use this command in the POWERSHELL

@TiredFingers
Copy link

TiredFingers commented Mar 26, 2022

Same case for Windows 10x64 build 19044.1586

Docker Desktop, container php:7.3-apache-buster
WSL2, ubuntu 20.04.4LTS

I just followed docs from https://docs.docker.com/desktop/windows/wsl/

For me solution is to use
sudo docker run -d -p 8080:80 -v $(pwd)/public:/var/www/html ra-test
instead of
sudo docker run -d -p 8080:80 --mount source=/home/tiredfingers/projects/ra-ci4/app,target=/var/www/html ra-test

I'm used ubuntu terminal

@rahulnegi20
Copy link

this worked for me.

Windows 10

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

5 participants