steilerDev/icloud-photos-sync

Docker Compose Pull unset variable

Closed this issue · 4 comments

When issuing ‘docker compose pull’ I get a message that says “ WARN[0000] The "tvl" variable is not set. Defaulting to a blank string.”

My AppleID password has a ‘$’ before ‘tvl’ which are the last characters.

In your docker-compose.yml it seems that '$' signs will be interpreted as variables if not either escaped or in single quotes. See this SO for context.

So given your string of:

[...]
    environment:
      APPLE_ID_PWD: "asdf$tvl"
[...]

you should either use

[...]
    environment:
      APPLE_ID_PWD: 'asdf$tvl'
[...]

or

[...]
    environment:
      APPLE_ID_PWD: "asdf\$tvl"
[...]

[...]
environment:
APPLE_ID_PWD: 'asdf$tvl'
[...]
Results in WARN[0000] The "tvl" variable is not set. Defaulting to a blank string.

[...]
environment:
APPLE_ID_PWD: "asdf$tvl"
[...]
Results in yaml: line 9: found unknown escape character

It seems docker-compose does not follow the yaml standard, can you try with double $ signs:

[...]
environment:
    APPLE_ID_PWD: "asdf$$tvl"
[...]

Bravo, that worked! Thanks