# Utilisez plusieurs conteneurs Docker sans exposer de ports

**URL:** <https://meta.discourse.org/t/use-multiple-docker-containers-without-exposing-ports/22283>\
**Category:** Sysadmins\
**Tags:** docker, how-to, advanced-setup\
**Created:** [Novembre 18, 2014, 9:43 UTC](https://meta.discourse.org/t/use-multiple-docker-containers-without-exposing-ports/22283 "2014-11-18T21:43:13Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![almereyda](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/almereyda/32/367792_2.png) [@almereyda](https://meta.discourse.org/u/almereyda)\
**Post date:** [Juin 7, 2016, 11:26 UTC](https://meta.discourse.org/t/use-multiple-docker-containers-without-exposing-ports/22283/9 "2016-06-07T23:26:05Z")

</div>

> [@almereyda](#):
>
> Where the term ports is being used for the regular Docker NATting to the host system, the term expose can be used to offer services inside a container without forwarding to the host system.

Since `nginx-proxy` catched up to Docker Networking support, this became prevailent again.  
One workaround for this can look like the following in your pups YAML:

```plaintext
expose:
# - "80"
# - "2222:22"

# any extra arguments for Docker?
docker_args: --net=your_desired_network --expose=80

```

where no ports are _exposed_ (in pups’ language) to certain _ports_ (in Docker’s) of the host system, but _exposed_ to a desired Docker network.

---

_[View the full topic](https://meta.discourse.org/t/use-multiple-docker-containers-without-exposing-ports/22283)._
