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

can't mount composer home directory from host #11

Closed
jacksontong opened this issue Mar 12, 2017 · 2 comments
Closed

can't mount composer home directory from host #11

jacksontong opened this issue Mar 12, 2017 · 2 comments

Comments

@jacksontong
Copy link

I'm running docker on mac and I got this error when trying to mount the composer home directory from the host to the container

docker run --rm -it -v $COMPOSER_HOME:/composer composer bash
docker: Error response from daemon: invalid volume spec ":/composer": invalid volume specification: ':/composer'.
See 'docker run --help'.

docker version:

Client:
 Version:      17.03.0-ce
 API version:  1.26
 Go version:   go1.7.5
 Git commit:   60ccb22
 Built:        Thu Feb 23 10:40:59 2017
 OS/Arch:      darwin/amd64

Server:
 Version:      17.03.0-ce
 API version:  1.26 (minimum version 1.12)
 Go version:   go1.7.5
 Git commit:   3a232c8
 Built:        Tue Feb 28 07:52:04 2017
 OS/Arch:      linux/amd64
 Experimental: true
@jacksontong
Copy link
Author

When I replaced $COMPOSER_HOME by the real path (/Users/toantv/.composer:/composer) it works.

@alcohol
Copy link
Member

alcohol commented Mar 13, 2017

$COMPOSER_HOME is not an environment variable that exists by default. You have to manually populate it. You can run env on your localhost to see what environment variables exist.

@alcohol alcohol closed this as completed Mar 13, 2017
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

2 participants