From charlesreid1

Revision as of 23:21, 30 March 2017 by Admin (talk | contribs) (Created page with "Setting up networking between containers and host. ==Stunnel== Stunnel networking configuration: The stunnel server is running in a Docker container. Stunnel server liste...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Setting up networking between containers and host.

Stunnel

Stunnel networking configuration:

The stunnel server is running in a Docker container.

Stunnel server listens on port 443 (internal). This is mapped to port 443 (external) on the host using the -p 443:443 flag when executing docker run.

Stunnel forwards traffic on to 127.0.0.1 port 22. This port needs to be bound, somehow, to somewhere. Keep it simple: bind container port 22 (internal) to host port 22 (external) using -p 22:22 when executing docker run.

Network Equals Host Flag

Note that you can also configure the container to share networks with the host, by adding --network=host when executing docker run.