We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have this setting in my docker-compose.yml:
volumes: image: "volumes" volumes: - "/var/www:/srv/www" - "/var/staging:/srv/staging" web: image: "web:staging" ports: - "443:443" - "80:80" volumes_from: - "volumes"
volumes image is just "tianon/true", when doing docker-compose run web, the root_volumes_1 container is created but the host aren't mounted:
volumes
"tianon/true"
docker-compose run web
root_volumes_1
{ "Volumes": { "/srv/staging": "/var/lib/docker/vfs/dir/61023818c6fcccbd9f14511ed61dd3fd2cceb8d08b2b8c60bab3a370caca681f", "/srv/www": "/var/lib/docker/vfs/dir/b6d5dc1491f92a621c3b008f23b1aa92b18149e90bcbf5890ba48e6f67709399" } }
When I start it manually using docker-compose run volumes, it mounts correctly (and creates it as root_volumes_run_1 but root_web_run_1 won't see it):
docker-compose run volumes
root_volumes_run_1
root_web_run_1
{ "Volumes": { "/srv/staging": "/var/staging", "/srv/www": "/var/www" }, }
Using Docker 1.5.0 and docker-compose 1.1.0.
The text was updated successfully, but these errors were encountered:
Workaround for this was to trick docker-compose:
docker run -v /var/www:/srv/www -v /var/staging:/srv/staging --name=root_volumes_1 volumes docker-compose run -d --service-ports web
Sorry, something went wrong.
This is very likely fixed by #858
No response from OP so going to close this issue. Should be fixed. Please re-open if it is not.
No branches or pull requests
I have this setting in my docker-compose.yml:
volumes
image is just"tianon/true"
, when doingdocker-compose run web
, theroot_volumes_1
container is created but the host aren't mounted:When I start it manually using
docker-compose run volumes
, it mounts correctly (and creates it asroot_volumes_run_1
butroot_web_run_1
won't see it):Using Docker 1.5.0 and docker-compose 1.1.0.
The text was updated successfully, but these errors were encountered: