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

Issues with quoting of Environment Variables #4

Open
roock opened this issue Dec 21, 2018 · 0 comments
Open

Issues with quoting of Environment Variables #4

roock opened this issue Dec 21, 2018 · 0 comments

Comments

@roock
Copy link

roock commented Dec 21, 2018

I've run into the following issue when using the given examples:

Fatal: parsing repository location failed: invalid backend
If the repo is in a local directory, you need to add a `local:` prefix

The problem seems to be the false quoting of the RESTIC_REPOSITORY environment variable:

environment:
  - RESTIC_REPOSITORY="b2:bucket:some/path"

For me the following version is working:

environment: 
  - "RESTIC_REPOSITORY=b2:bucket:some/path"

update: the same issue also applied to the CRON_*_EXPRESSION environment variables

my setup:
Docker version 18.09.0-ce, build 4d60db472b
docker-compose version 1.23.2, build unknown

I didn't find anything about quoting in the docker compose documentation, but I've found the following stackoverflow question:

https://stackoverflow.com/questions/41988809/docker-compose-how-to-escape-environment-variables

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

1 participant