Skip to content

[Bug] [Docker] Cannot build docker container with docker-compose 2.X #7712

@HomminLee

Description

@HomminLee

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

docker version: 20.10.12
docker-compose version: v2.1.1

After pull dolphinscheduler.docker.scarf.sh/apache/dolphinscheduler:latest, I use command docker-compose up -d to build docker containers, but I get exception log:

unexpected character "-" in variable name near "-Xmx1g -Xmn512m\nMASTER_EXEC_THREADS=100\nMASTER_EXEC_TASK_NUM=20\nMASTER_DISPATCH_TASK_NUM=3\nMASTER_HOST_SELECTOR=LowerWeight\nMASTER_HEARTBEAT_INTERVAL=10\nMASTER_TASK_COMMIT_RETRYTIMES=5\nMASTER_TASK_COMMIT_INTERVAL=1000\nMASTER_MAX_CPULOAD_AVG=-1\nMASTER_RESERVED_MEMORY=0.3...
...

BTW, I change docker-compose version to 1.29.2, command docker-compose up -d will work well.

I read the config.env.sh, I think this may be the effect of blank space. (The jvm properties contain blank space, like MASTER_SERVER_OPTS=-Xms1g -Xmx1g -Xmn512m)

What you expected to happen

Quickly install DolphinScheduler by docker-compose.

How to reproduce

Install docker(version=20.10.12)
Install docker-compose(version=v2.1.1)

Follow this step: https://dolphinscheduler.apache.org/en-us/docs/latest/user_doc/guide/installation/docker.html
You will get error when run command docker-compose up -d.

Anything else

No response

Version

2.0.1

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions