Official repository for Mockoon CLI images
5M+
Mockoon is the easiest and quickest way to run mock APIs locally. No remote deployment, no account required, free and open-source.
It's a desktop application and a CLI that help you work faster with APIs by mocking them. Integrate third-party APIs quicker, improve your integration tests, speed up your development, etc.
➡️ Download
Mockoon offers many features:
You can check the complete list on the website.
Mockoon CLI is a lightweight and fast NPM package to deploy your Mockoon's mock APIs anywhere. Please look at our dedicated documentation to learn how to install and use it.
A generic Docker image is published on the Docker Hub Mockoon CLI repository (mockoon/cli) and mirrored on AWS Public ECR (public.ecr.aws/z7j6m9o3/cli). It uses node:26-alpine and installs the latest version of Mockoon CLI.
All of mockoon-cli start flags (--port, etc.) must be provided when running the container.
To load the Mockoon data, you can either mount a local data file and pass mockoon-cli start flags at the end of the command:
docker run -d --mount type=bind,source=/home/your-data-file.json,target=/home/mockoon/data/your-data-file.json,readonly -p 3000:3000 mockoon/cli:latest --data /home/mockoon/data/your-data-file.json --port 3000
Or pull from AWS Public ECR:
docker run -d --mount type=bind,source=/home/your-data-file.json,target=/home/mockoon/data/your-data-file.json,readonly -p 3000:3000 public.ecr.aws/z7j6m9o3/cli:latest --data /home/mockoon/data/your-data-file.json --port 3000
Or directly pass a URL to the mockoon-cli start command, without mounting a local data file:
docker run -d -p 3000:3000 mockoon/cli:latest -d https://raw.githubusercontent.com/mockoon/mock-samples/main/samples/generate-mock-data.json --port 3000
Content type
Image
Digest
sha256:1d40ef410…
Size
95.4 MB
Last updated
about 1 month ago
docker pull mockoon/cli