Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 747 Bytes

File metadata and controls

31 lines (19 loc) · 747 Bytes

Docker

You can run the Imposter CLI as a Docker container, without installing it locally.

The container image is available at impostermocks/cli on Docker Hub.

Start mocks

To start a mock server using configuration in your current directory:

docker run --rm -v $PWD:/mocks -p 8080:8080 impostermocks/cli up

Your mock will be available at http://localhost:8080.

Scaffold configuration

To generate mock configuration files in your current directory:

docker run --rm -v $PWD:/mocks impostermocks/cli scaffold

Other commands

You can pass any CLI command and flags after the image name:

docker run --rm -v $PWD:/mocks impostermocks/cli --help