Suresh
08/08/2025, 8:23 AM--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"
1. 3. Using older versions (e.g., 2.35.0
) with --no-gzip
results in:
pgsql
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?Lee Turner
08/08/2025, 8:32 AM--no-gzip
from as a parameter? The cli parameter for disabling gzip is --disable-gzip
https://wiremock.org/docs/standalone/java-jar/