Skip to content

Commit

Permalink
update tutorial.md file
Browse files Browse the repository at this point in the history
fix the images in readme file which is not shown previously
  • Loading branch information
urvil38 authored May 19, 2017
1 parent 8a481f7 commit a02f524
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions networking/tutorials.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ In the following example, we will use a fictional app called **[Pets](https://gi

It consists of `web`, a Python flask container, and `db`, a redis container. Its architecture and required network policy is described below.

<span class="float-right">

![Pets App Architecture and Network](./img/apptopology.png)
</span>


We will run this application on different network deployment models to show how we can instantiate connectivity and network policy. Each deployment model exhibits different characteristics that may be advantageous to your application and environment.

Expand All @@ -36,9 +36,9 @@ $ docker run -d --net catnet -p 8000:5000 -e 'DB=cat-db' -e 'ROLE=cat' chrch/web

> When an IP address is not specified, port mapping will be exposed on all interfaces of a host. In this case the container's application is exposed on `0.0.0.0:8000`. We can specify a specific IP address to advertise on only a single IP interface with the flag `-p IP:host_port:container_port`. More options to expose ports can be found in the [Docker docs](https://docs.docker.com/engine/reference/run/#/expose-incoming-ports).
<span class="float-right">

![Pet App using Bridge Driver](./img/singlehost-bridge.png)
</span>


The `web` container takes some environment variables to determine which backend it needs to connect to. Above we supply it with `cat-db` which is the name of our `redis` service. The Docker Engine's built-in DNS will resolve a container's name to its location in any user-defined network. Thus, on a network, a container or service can always be referenced by its name.

Expand Down

0 comments on commit a02f524

Please sign in to comment.