<commit_before>---
title: "Newman with Docker"
page_id: "newman_with_docker"
warning: false
tags:
  - "newman"

---

This topic describes how to use Newman with Docker in these platforms:

* [Mac and Ubuntu](#mac-and-ubuntu)
* [Windows](#windows)


### Mac and Ubuntu

Follow these steps to use [Newman](https://github.com/postmanlabs/newman){:target="_blank"} with [Docker](https://www.docker.com/){:target="_blank"}:

1\. In the [Docker Hub](http://registry.hub.docker.com/u/postman/newman_ubuntu1404){:target="_blank"}, 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_ubuntu1404
```

4\. Run Newman commands on the image.

```bash
$ docker run -t postman/newman_ubuntu1404 --url="https://www.getpostman.com/collections/8a0c9bc08f062d12dcda"
```

At this stage, you should see the Collection 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 our [blog post](http://blog.getpostman.com/2015/08/07/using-the-newman-docker-image-in-windows/){:target="_blank"} on how to run Newman in Docker for Windows.<commit_msg>Update newman_with_docker.md<commit_after>---
title: "Newman with Docker"
page_id: "newman_with_docker"
warning: false
tags:
  - "newman"

---

This topic describes how to use Newman with Docker in these platforms:

* [Mac and Ubuntu](#mac-and-ubuntu)
* [Windows](#windows)


### Mac and Ubuntu

Follow these steps to use [Newman](https://github.com/postmanlabs/newman){:target="_blank"} with [Docker](https://www.docker.com/){:target="_blank"}:

1\. In the [Docker Hub](http://registry.hub.docker.com/u/postman/newman_ubuntu1404){:target="_blank"}, 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_ubuntu1404
```

4\. Run Newman commands on the image.

```bash
$ docker run -t postman/newman_ubuntu1404 --url="https://www.getpostman.com/collections/8a0c9bc08f062d12dcda"
```

At this stage, you should see the Collection 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 our [blog post](http://blog.getpostman.com/2015/08/07/using-the-newman-docker-image-in-windows/){:target="_blank"} on how to run Newman in Docker for Windows.
<br>
<br>

For more information on collection runs, see:

* [Starting a collection run](/docs/v6/postman/collection_runs/starting_a_collection_run){:target="_blank"}
* [Using environments in collection runs](/docs/v6/postman/collection_runs/using_environments_in_collection_runs){:target="_blank"}
* [Working with data files](/docs/v6/postman/collection_runs/working_with_data_files){:target="_blank"}
* [Running multiple iterations](/docs/v6/postman/collection_runs/running_multiple_iterations){:target="_blank"}
* [Building workflows](/docs/v6/postman/collection_runs/building_workflows){:target="_blank"}
* [Sharing a collection run](/docs/v6/postman/collection_runs/sharing_a_collection_run){:target="_blank"}
* [Debugging a collection run](/docs/v6/postman/collection_runs/debugging_a_collection_run){:target="_blank"}
* [Command line integration with Newman](/docs/v6/postman/collection_runs/command_line_integration_with_newman){:target="_blank"}
* [Integration with Jenkins](/docs/v6/postman/collection_runs/integration_with_jenkins){:target="_blank"}
* [Integration with Travis CI](/docs/v6/postman/collection_runs/integration_with_travis){:target="_blank"}
* [Newman with Docker](/docs/v6/postman/collection_runs/newman_with_docker){:target="_blank"}
{'fraction_non_alphanumeric': 0.1194456665200176, 'fraction_numerical': 0.017377914650241973, 'mean_word_length': 5.449645390070922, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, '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': '2973229', 'n_tokens_mistral': 1515, 'n_tokens_neox': 1356, 'n_words': 420}