For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Postman
PricingEnterprise
Contact SalesSign InSign Up for Free
HomeDocs
HomeDocs
      • Overview
        • Run and test collections with Newman CLI
        • Install and run Newman
        • Newman command reference
        • Upload files with Newman
        • Use Newman built-in reporters
        • Use Newman external and custom reporters
        • Newman with Docker
        • CI with Newman
        • Travis CI with Newman
        • Jenkins with Newman
        • Migrate to the Postman CLI
Postman API Platform

Product

  • Postman Overview
  • Enterprise
  • Spec Hub
  • Flows
  • Agent Mode
  • API Catalog
  • Fern
  • Postman CLI
  • Integrations
  • Workspaces
  • Plans and pricing

API Network

  • App Security
  • Artificial Intelligence
  • Communication
  • Data Analytics
  • Database
  • Developer Productivity
  • DevOps
  • Ecommerce
  • eSignature
  • Financial Services
  • Payments
  • Travel

Resources

  • Postman Docs
  • Academy
  • Community
  • Templates
  • Intergalactic
  • Videos
  • MCP Servers

Legal and Security

  • Legal Terms Hub
  • Terms of Service
  • Postman Product Terms
  • Security
  • Website Terms of Use

Company

  • About
  • Careers and culture
  • Contact us
  • Partner program
  • Customer stories
  • Student programs
  • Press and media
Twitter iconLinkedIn iconGithub iconYouTube iconInstagram iconDiscord icon
Download Postman
Privacy Policy

© 2026 Postman, Inc.

On this page
  • Use Newman with Docker on macOS and Ubuntu
  • Use Newman with Docker on Windows
  • Next steps
ReferenceNewman CLI

Run Newman with Docker on macOS, Ubuntu, and Windows

||View as Markdown|
Was this page helpful?
Previous

Use Newman external and custom reporters

Next

Run Postman Collections in your CI environment using Newman

Built with

Docker is a platform for building and running applications in a virtual environment. You can use Newman to run your Postman Collections in a Docker container. When running collections in Docker, you can use all available Newman command options and run local collection files.

Use Newman with Docker on macOS and Ubuntu

To use Newman with Docker for macOS or Ubuntu, do the following:

  1. Make sure Docker is installed and running on your system. Go to Get Docker, choose your operating system, and follow the instructions.

  2. To test your Docker installation, run the following command:

    $docker run hello-world
  3. Pull the Newman Docker image from Docker hub:

    $docker pull postman/newman;
  4. Run Newman commands on the image. For example, to run a collection, use the collection ID and your Postman API key:

    • To get the collection ID, select a collection in the sidebar. In the right sidebar, click Info icon Info and copy the ID.

    • To get an API key, see Generate a Postman API key.

    $docker run -t postman/newman run "https://api.getpostman.com/collections/<collection-id>?apikey=<your-api-key>"

The collection runs in Newman, and the output displays in the terminal.

The entry point to the Docker image is Newman, so you can use all Newman command line parameters. You can also run locally stored collection files. The Newman Docker documentation describes how to mount shared data volumes.

Use Newman with Docker on Windows

To learn more about using Newman with Docker on Windows, go to Using the Newman Docker Image in Windows.

Next steps

For more information about running Postman Collection runs, see the following:

  • Test your API using the Collection Runner
  • Run collections using imported data
  • Customize request order in a collection run
  • Integrate your Postman tests with Jenkins using Newman
  • Integrate your Postman tests with Travis CI using Newman