-
Notifications
You must be signed in to change notification settings - Fork 296
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
Docker/8.5.2: Command Line Arguments not recognized? #1110
Comments
Hmm... I'm pretty sure |
Could also be changes in the Perl version, the docker image uses Debian 11 "bullseye" with Perl 5.32.1 |
This is working on a clean Debian 11 VM:
[Update 1] Also working in the Docker image. I assume the argument passing is an issue. [Update 2] It's the passing of the args, I assume it's docker environment related. |
Reason: |
With 8.5.2 docker image linux/amd64 (sha256:7434f3a6c9cbe2a69b5653d671965c24ed527bbab2301a3e0f8b7d32f5650fbe) it seems that command line arguments are ignored.
Tested with
--norestart
and--advertiseaddr
.Log says:
No errors in any log.
But when logging values in Perl, then these are empty, although variables are accessed as done in other places.
(tested why
main::canRestartServer()
inslimserver.pl
didn't deny restarts although--norestart
was specified)Result:
Removed outdated
--nomysqueezebox
, tested again, but got same result.Did I find a bug, or do I get something wrong?
Kind regards
Maddes
[Update/Solution]
EXTRA_ARGS in Docker configuration had enclosing quotes, which lead to the wrong parametes.
Note for myself (and others): do not quote EXTRA_ARGS in your docker config (compose.yaml, etc.)
P.S.:
While reading Perl 5.31 docs I recognized that
our
only creates aliases to existing variables, which I couldn't find in the source. AndGetOptions()
seems to need existing variables. Do not know if this could be the cause.Not an Perl expert.
The text was updated successfully, but these errors were encountered: