You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Jacob Jona Fahlenkamp (Jira)" <ji...@apache.org> on 2025/10/29 12:39:00 UTC

[jira] [Created] (FLINK-38587) docker entrypoint script cannot handle FLINK_PROPERTIES that include spaces

Jacob Jona Fahlenkamp created FLINK-38587:
---------------------------------------------

             Summary: docker entrypoint script cannot handle FLINK_PROPERTIES that include spaces
                 Key: FLINK-38587
                 URL: https://issues.apache.org/jira/browse/FLINK-38587
             Project: Flink
          Issue Type: Bug
    Affects Versions: 1.20.3
            Reporter: Jacob Jona Fahlenkamp
         Attachments: docker-compose.yml

Steps to reproduce:
 # Download the file [^docker-compose.yml]
 # Run with
{code:java}
docker compose up{code}

 # In the output you can see the whitespaces have been stripped from the options.

{code:java}
jobmanager-1   | WARNING: Unknown module: ALL-UNNAMED--enable-preview specified to --add-opens {code}

Cause:

The following entrypoint script removes all spaces in each line. Probably the intention was just to strip the spaces from the start and beginning of the line. It happens in this line: https://github.com/apache/flink-docker/blob/master/1.20/scala_2.12-java17-ubuntu/docker-entrypoint.sh#L111C11-L111C47

Potential solution:

Replace the line
{code:java}
prop=$(echo $prop | tr -d '[:space:]') {code}
with the following:
{code:java}
prop=$(echo "$prop" | sed 's/^[[:space:]]*//;s/[[:space:]]*$//'){code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)