这是indexloc提供的服务,不要输入任何密码
Skip to content

docker-options cleaning up arguments #8010

@mrbrdo

Description

@mrbrdo

Description of problem

As talked on Discord, if one would use dokku docker-options:clear and then dokku docker-options:add to readd build-args, especially the --link arguments, they can be all put in the same line, instead of each --link argument being on a new line. This then seems to break the Dockerfile deploy which fails with unknown flag: --link.

Example of problematic DOCKER_OPTIONS_BUILD (which was not edited manually, but by dokku docker-options command):

--build-arg MYBUILDARG=X --link dokku.postgres.db-site:dokku-postgres-db-site --link dokku.redis.redis-site:dokku-redis-redis-site

Steps to reproduce

Use dokku docker-options:clear and then dokku docker-options:add to readd all the link args in a single line.

dokku report $APP_NAME

Additional information

No response

Output of failing commands after running: dokku trace:off

Output of failing commands after running: dokku trace:on

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions