Newman with Docker

  • Newman

For Mac and Ubuntu

To run Newman in Docker,

1. Go to Docker Hub and pull your copy here.

2. Ensure you have Docker installed and running in your system. Docker has extensive installation guideline for popular operating systems. Choose your operating system and follow the instructions. A quick test to see if docker is installed correctly is to execute the following command, ensuring that it runs without errors.

$ docker run hello-world

3. Pull the Newman docker image.

$ docker pull postman/newman_ubuntu1404

4. Run Newman commands on the image.

$ docker run -t postman/newman_ubuntu1404 --url=""

At this stage, you should see Newman running the collection and the output being visible on the terminal. The entrypoint to the docker image is Newman, and as such, all command line parameters of Newman can be used here. You can also run locally stored collection files. The README of the image outlines the procedure of mounting shared data volumes to achieve this.

For Windows

Check out our blog post on how to run Newman in Docker for Windows.