Hello Everyone, Unable to disable gzip in WireMock...
# general
s
Hello Everyone, Unable to disable gzip in WireMock Docker – container exits immediately when using
--no-gzip
Description:
I'm running WireMock via Docker and trying to disable gzip compression because my client needs uncompressed responses.
I've tried:
1.
Setting the environment variable:
docker run -d \ --name wiremock \ -p 8080:8080 \ -e WIREMOCK_NO_GZIP=true \ wiremock/wiremock:latest …but the responses still contain
Content-Encoding: gzip
. 2. Passing
--no-gzip
as a CLI flag: docker run --rm -it \ -p 8083:8080 \ wiremock/wiremock:3.9.1 \ --verbose --no-gzip …but the container immediately exits with: Exception in thread "main" java.util.MissingResourceException thrown from the UncaughtExceptionHandler in thread "main" 3. Using older versions (e.g.,
2.35.0
) with
--no-gzip
results in:
Copy code
joptsimple.UnrecognizedOptionException: no-gzip is not a recognized option
W*hat I’ve confirmed:* • Docker image pulls and runs fine without
--no-gzip
. • Problem only occurs when trying to disable gzip. • Removing containers and images before retrying doesn’t fix it. Questions for the community: • What is the correct way to disable gzip in the latest WireMock Docker image? • Is
--no-gzip
supported in the official Docker images, and if so, from which version? • Could the
MissingResourceException
be a packaging issue in recent releases?
l