Diederick de Vries
02/19/2025, 9:31 AM$ docker run -it --rm \
-p 8080:8080 \
--name wiremock \
-v $PWD:/home/wiremock \
wiremock/wiremock:3.12.0
And it created both mappings
and __files
directories in my $PWD
. After placing mytest.json with these contents there:
{
"request": {
"method": "GET",
"url": "/api/mytest"
},
"response": {
"status": 200,
"body": "More content\n"
}
}
and restarting the container, I had expected have the configured response return to me using curl, but it fails after:
$ curl <http://localhost:8080/api/mytest>
curl: (56) Recv failure: Connection reset by peer
This is from the introduction at https://wiremock.org/docs/standalone/docker/. Can someone tell me what I'm missing here?