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

Quoted volumes path interpreted as named volume #4154

Closed
maltefiala opened this issue Nov 15, 2016 · 3 comments
Closed

Quoted volumes path interpreted as named volume #4154

maltefiala opened this issue Nov 15, 2016 · 3 comments

Comments

@maltefiala
Copy link

Foreword

Tested with 1.8.1 and 1.9.0-rc4

Not Working

volumes:
  - "$MYSQL_DIRECTORY:/var/lib/mysql"

and

volumes:
  - "${MYSQL_DIRECTORY}:/var/lib/mysql"
export MYSQL_DIRECTORY="/foo"
ERROR: compose.cli.main.main: Named volume ""/foo":/var/lib/mysql:rw" is used in service "mysql" but no declaration was found in the volumes section.`

Working

volumes:
  - "${MYSQL_DIRECTORY}:/var/lib/mysql"
export MYSQL_DIRECTORY=/foo

Suggestion

docker-compose should treat quoted absolute paths as paths

@shin-
Copy link

shin- commented Nov 16, 2016

Good suggestion - thank you!

@stale
Copy link

stale bot commented Oct 10, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Oct 10, 2019
@stale
Copy link

stale bot commented Oct 17, 2019

This issue has been automatically closed because it had not recent activity during the stale period.

@stale stale bot closed this as completed Oct 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants