They're apparently allowed and prevent variable expansion as in sh or bash.
Source:
Note
Be sure to use double quotes and not single quotes. Particularly when you are using string interpolation (e.g. LABEL example="foo-$ENV_VAR"), single quotes will take the string as is without unpacking the variable’s value.
They're apparently allowed and prevent variable expansion as in sh or bash.
Source:
(https://docs.docker.com/engine/reference/builder/)
Docker's behavior:
Minimal test case showing the failure to parse single-quoted strings: