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.
To start a mock server using configuration in your current directory:
docker run --rm -v $PWD:/mocks -p 8080:8080 impostermocks/cli upYour mock will be available at http://localhost:8080.
To generate mock configuration files in your current directory:
docker run --rm -v $PWD:/mocks impostermocks/cli scaffoldYou can pass any CLI command and flags after the image name:
docker run --rm -v $PWD:/mocks impostermocks/cli --help