Compose: Quoted volumes path interpreted as named volume

Created on 15 Nov 2016  ·  3Comments  ·  Source: docker/compose

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.`



md5-f8234cc07328abd5fb7fe33f36bbeef1



```bash
export MYSQL_DIRECTORY=/foo

Suggestion

docker-compose should treat quoted absolute paths as paths

areconfig kinenhancement stale

Most helpful comment

Good suggestion - thank you!

All 3 comments

Good suggestion - thank you!

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.

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

Was this page helpful?
0 / 5 - 0 ratings