mirror of
https://github.com/axllent/mailpit.git
synced 2026-04-27 01:06:01 +03:00
[GH-ISSUE #584] docker HEALTHCHECK fails if command line arguments are given #376
Labels
No labels
awaiting feedback
bug
docker
documentation
enhancement
github_actions
invalid
pull-request
question
stale
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/mailpit#376
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @daggaz on GitHub (Nov 13, 2025).
Original GitHub issue: https://github.com/axllent/mailpit/issues/584
Docker HEALTHCHECK works fine If I run mailpit without any args:
However, if I run it with a command line arg:
If I exec into the container and run the health check command myself:
However, if I run the command with the additional arguments there as well:
@axllent commented on GitHub (Nov 14, 2025):
@daggaz - there is no way around this issue if you are passing argument flags to Mailpit in the Docker command as the background health check inside of Docker can't detect that (unless you're overwriting the healthcheck command). The solution is to use Docker environment variables instead of argument flags, and the default health check should detect the
MP_WEBROOTenvironment correctly and not need any further adjustment.@daggaz commented on GitHub (Nov 14, 2025):
That's a shame, as it slightly invalidates the point in having an entrypoint like that.
Makes sense though, and your workaround works.