Newman with Docker
For Mac and Ubuntu
Go to Docker Hub and pull your copy here.
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
- Pull the Newman docker image.
$ docker pull postman/newman_ubuntu1404
- Run Newman commands on the image.
$ docker run -t postman/newman_ubuntu1404 --url="https://www.getpostman.com/collections/8a0c9bc08f062d12dcda"
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.
Check out our blog post on how to run Newman in Docker for Windows.