Update Dockerfile to fix #7529 #7532
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add
--noproxyfor localhost to prevent from using a proxy for this requestDescribe the pull request
This PR fixes #7529.
When the environment variables
HTTP_PROXYand/orHTTPS_PROXYare set, the routing even for localhost goes through the proxy. In cases where the docker image uses a port redirection this request fails.When accessing itself as a host a proxy is not really needed so this is disabled in the
HEALTHCHECK.Link to the issue: #7529
Checklist
Test plan
This fix can be verified by starting a docker container with the following additional parameters:
-e HTTP_PROXY=host.docker.internal -e HTTPS_PROXY=host.docker.internal. When this fix is not present adocker inspector adocker pswill show the container as unhealthy. With this fix the container is healthy.A command for verification could look like this: