Official Docker Image for Newman Shamasis Bhattacharya July 30, 2015 Many of you had questions regarding how to get Newman running within a Docker container. Following that, we decided to release the official Docker image of Newman. Head over to the Docker hub and pull your copy. registry.hub.docker.com/u/postman/newman_ubuntu1404 Getting Started The following bits are straight from the README of newman-docker Github repository… To begin, ensure that 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 command docker run hello-world and it should run without errors. Step 1 – Pull the newman Docker image docker pull postman/newman_ubuntu1404 Step 2 – Run newman commands on the image docker run -t postman/newman_ubuntu1404 --url="https://www.postman.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. Too many new terminologies? Newman is a command-line collection runner for Postman. It allows you to effortlessly run and test your API endpoints, within Postman Collections, directly from the command-line. It is built with extensibility in mind so that you can easily integrate it with your continuous integration servers and build systems. On the other hand, Docker allows you to package an application with all of its dependencies into a standardized unit for software development. Visit https://www.docker.com/why-docker to read more about how Docker can drastically simplify development and deployment. Together, you can now run Newman command-line tool in a way it has been packaged by us without being bothered about operating system dependencies, environment setup, etc. In this post Tags: Docker Newman Shamasis Bhattacharya Shamasis Bhattacharya is the chief software architect at Postman. View all posts by Shamasis Bhattacharya → Comment Cancel replyYour email address will not be published. Required fields are marked *Your name Your email Write a public comment Δ This site uses Akismet to reduce spam. Learn how your comment data is processed. You might also like Working with the Postman CLI Gbadebo Bello The Postman CLI is the official command-line tool for Postman. It lets you run collections, publish workspaces, lint API specs, trigger monitors,… Read more → Headless Postman: Automating the API Lifecycle with the MCP Server Pooja Mistry The Headless Postman Workflow with the Postman MCP Server Most API developers have a familiar routine: open Postman, import a spec, create… Read more → Reusable Requests: Enhancing Modularity and Efficiency Danny Dainton Imagine treating a request in Postman as a reusable component, not something you copy and paste across collections, but something you define… Read more →