Skip to content

Fixed arg order error #6919

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

Merged
merged 1 commit into from
Jul 28, 2025
Merged

Conversation

anthropikos
Copy link
Contributor

@anthropikos anthropikos commented Jul 25, 2025

postgres the image name has to be at the end of all the options because any arguments after the image name is interpreted as the command to be run.

Prior to the fix, POSTGRES_PASSWORD will be interpreted as commands and fail to set resulting in a container that won't start.

After the fix, the environment variable will be correctly parsed into the compose file and can be seen in docker inspect.

Additionally, I removed the extra escapes (i.e., \) that aren't needed in the bash command.

What Changed?

  • Moved postgres to the end of the command in two locations
  • Reordered the explanation to follow the change of command argument order
  • Removed extra escape backslash for docker exec command

Issue addressed

#6920

`postgres` the image name has to be at the end of all the options because any arguments after the image name is interpreted as the command to be run.

Prior to the fix, `POSTGRES_PASSWORD` will be interpreted as commands and fail to set resulting in a container that won't start.

After the fix, the environment variable will be correctly parsed into the compose file and can be seen in `docker inspect`.

Additionally, I removed the extra escapes (i.e., `\`) that aren't needed in the bash command.
@anthropikos anthropikos marked this pull request as ready for review July 25, 2025 04:52
@anthropikos anthropikos requested a review from a team as a code owner July 25, 2025 04:52
@nidhibhammar nidhibhammar added the deploy Add this label to a PR and it will automatically be deployed to netlify label Jul 28, 2025
Copy link
Contributor

@nidhibhammar nidhibhammar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nidhibhammar nidhibhammar merged commit db48f34 into EnterpriseDB:develop Jul 28, 2025
9 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deploy Add this label to a PR and it will automatically be deployed to netlify
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants