<commit_before>---
title: "Newman with Docker"
order: 61
page_id: "newman_with_docker"
contextual_links:
  - type: section
    name: "Prerequisites"
  - type: link
    name: "Command line integration with Newman"
    url: "/docs/running-collections/using-newman-cli/command-line-integration-with-newman/"
  - type: section
    name: "Additional Resources"
  - type: subtitle
    name: "Related Blog Posts"
  - type: link
    name: "Integrations: how Postman plays with some of your favorite tools"
    url: "https://blog.postman.com/2018/04/13/integrations-how-postman-plays-with-some-of-your-favorite-tools/"
  - type: link
    name: "Using the Newman Docker image in Windows, hassle free"
    url: "https://blog.postman.com/2015/08/07/using-the-newman-docker-image-in-windows/"
  - type: section
    name: "Next Steps"
  - type: link
    name: "Intro to the Postman API"
    url: "/docs/developer/intro-api/"

warning: false
tags:
  - "newman"

---

This topic describes how to use [Newman](https://github.com/postmanlabs/newman) with [Docker](https://www.docker.com/) in these platforms:

* [macOS and Ubuntu](#macos-and-ubuntu)
* [Windows](#windows)

## macOS and Ubuntu

Follow these steps to use Newman with Docker:

1\. In the [Docker Hub](https://hub.docker.com/r/postman/newman/), download your copy.

2\. Ensure you have Docker installed and running in your system. Docker has extensive installation guidelines for popular operating systems. Choose your operating system and follow the instructions.

To test your Docker installation, execute this command to ensure it runs without errors:

```bash
$ docker run hello-world
```

3\. Pull the Newman docker image.

```bash
$ docker pull postman/newman;
```

4\. Run Newman commands on the image.

```bash
$ docker run -t postman/newman run "https://www.getpostman.com/collections/0d0350a9a89d39fb6361"
```
The URL is a shareable public link to your collection. You can get this by clicking **View more actions** on a collection, choose **Share collection** and then click **Get public link**.

At this stage, you should see the [Collection](/docs/sending-requests/intro-to-collections/) running in Newman and the output displayed 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 README of the image outlines how to mount shared data volumes.

## Windows

Check out [how to run Newman in Docker for Windows](https://blog.postman.com/2015/08/07/using-the-newman-docker-image-in-windows/).

---
For more information on collection runs, see:

* [Using the Collection Runner](/docs/running-collections/intro-to-collection-runs/)
* [Working with data files](/docs/running-collections/working-with-data-files/)
* [Building workflows](/docs/running-collections/building-workflows/)
* [Integration with Jenkins](/docs/running-collections/using-newman-cli/integration-with-jenkins/)
* [Integration with Travis CI](/docs/running-collections/using-newman-cli/integration-with-travis/)
<commit_msg>lint issue fix<commit_after>---
title: "Newman with Docker"
order: 61
page_id: "newman_with_docker"
contextual_links:
  - type: section
    name: "Prerequisites"
  - type: link
    name: "Command line integration with Newman"
    url: "/docs/running-collections/using-newman-cli/command-line-integration-with-newman/"
  - type: section
    name: "Additional Resources"
  - type: subtitle
    name: "Related Blog Posts"
  - type: link
    name: "Integrations: how Postman plays with some of your favorite tools"
    url: "https://blog.postman.com/2018/04/13/integrations-how-postman-plays-with-some-of-your-favorite-tools/"
  - type: link
    name: "Using the Newman Docker image in Windows, hassle free"
    url: "https://blog.postman.com/2015/08/07/using-the-newman-docker-image-in-windows/"
  - type: section
    name: "Next Steps"
  - type: link
    name: "Intro to the Postman API"
    url: "/docs/developer/intro-api/"

warning: false
tags:
  - "newman"

---

This topic describes how to use [Newman](https://github.com/postmanlabs/newman) with [Docker](https://www.docker.com/) in these platforms:

* [macOS and Ubuntu](#macos-and-ubuntu)
* [Windows](#windows)

## macOS and Ubuntu

Follow these steps to use Newman with Docker:

1\. In the [Docker Hub](https://hub.docker.com/r/postman/newman/), download your copy.

2\. Ensure you have Docker installed and running in your system. Docker has extensive installation guidelines for popular operating systems. Choose your operating system and follow the instructions.

To test your Docker installation, execute this command to ensure it runs without errors:

```bash
$ docker run hello-world
```

3\. Pull the Newman docker image.

```bash
$ docker pull postman/newman;
```

4\. Run Newman commands on the image.

```bash
$ docker run -t postman/newman run "https://www.getpostman.com/collections/0d0350a9a89d39fb6361"
```

The URL is a shareable public link to your collection. You can get this by clicking **View more actions** on a collection, choose **Share collection** and then click **Get public link**.

At this stage, you should see the [Collection](/docs/sending-requests/intro-to-collections/) running in Newman and the output displayed 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 README of the image outlines how to mount shared data volumes.

## Windows

Check out [how to run Newman in Docker for Windows](https://blog.postman.com/2015/08/07/using-the-newman-docker-image-in-windows/).

---
For more information on collection runs, see:

* [Using the Collection Runner](/docs/running-collections/intro-to-collection-runs/)
* [Working with data files](/docs/running-collections/working-with-data-files/)
* [Building workflows](/docs/running-collections/building-workflows/)
* [Integration with Jenkins](/docs/running-collections/using-newman-cli/integration-with-jenkins/)
* [Integration with Travis CI](/docs/running-collections/using-newman-cli/integration-with-travis/)

{'fraction_non_alphanumeric': 0.11676451402478799, 'fraction_numerical': 0.014350945857795172, 'mean_word_length': 4.043585526315789, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 14, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3404910', 'n_tokens_mistral': 2014, 'n_tokens_neox': 1833, 'n_words': 622}