sidi amine bouhamidi

03/26/2023, 9:02 PM
Hi there! I am using the dockerized version of wiremock, everything working well except the response templating
. I looked everywhere to find out how to activate it. Could you please help me? • How I start the container :
docker run -itd --rm -p 9000:8080 --name wiremock -v $PWD/mocks:/home/wiremock wiremock/wiremock
• My Stub in
  "request": {
    "method": "GET",
    "url": "/api/v1/session"
  "response": {
    "status": 200,
    "jsonBody": {
      "expiresAt": "{{now offset='900 seconds'}}"
    "transformers": [
    "headers": {
      "Content-Type": "application/json"
• The response when I call the API
  "expiresAt": "{{now offset='900 seconds'}}"


03/27/2023, 10:33 AM
Hi @sidi amine bouhamidi you need to add the
CLI parameter when starting up WireMock.

sidi amine bouhamidi

03/28/2023, 3:13 PM
thank you @Tom for your answer. I started my container with the extra parameter but still have the same problem described above.
docker run -itd --rm -p 9000:8080 --name wiremock -v $PWD/mocks:/home/wiremock wiremock/wiremock --local-response-templating
oh! now it's working. I added
"transformers": ["response-template"]
and everything is working well now
thank you @Tom
👍 1