[x] I searched existing issues before opening this one
Expected behavior
Apps in docker container should run at normal performance levels.
Actual behavior
It appears that the port mapping is creating a significant performance hit.
Steps to reproduce the behavior
I was running nginx in a container with port mapping and it was painfully slow, sometimes taking 5-10 seconds for webpages to load.
However, I have my containers set to use a linux bridge on the host and that bridge is bridged to a second interface on an internal lab network. That lab network has it's own NATing router, so I port forwarded from the router VIP to the container's direct IP address in the lab network. With that it works at a performance level that should be expected.
Output of docker version:
Client:
Version: 17.09.0-ce
API version: 1.32
Go version: go1.8.3
Git commit: afdb6d4
Built: Tue Sep 26 22:41:23 2017
OS/Arch: linux/amd64
Server:
Version: 17.09.0-ce
API version: 1.32 (minimum version 1.12)
Go version: go1.8.3
Git commit: afdb6d4
Built: Tue Sep 26 22:42:49 2017
OS/Arch: linux/amd64
Experimental: false
Port forwarding incurs an additional cost of NATing for external IP's.
For traffic hitting the forwarded port originating from the bridge network, the traffic is routed through a usperspace proxy which will have significant performance impact.
Expected behavior
Apps in docker container should run at normal performance levels.
Actual behavior
It appears that the port mapping is creating a significant performance hit.
Steps to reproduce the behavior
I was running nginx in a container with port mapping and it was painfully slow, sometimes taking 5-10 seconds for webpages to load.
However, I have my containers set to use a linux bridge on the host and that bridge is bridged to a second interface on an internal lab network. That lab network has it's own NATing router, so I port forwarded from the router VIP to the container's direct IP address in the lab network. With that it works at a performance level that should be expected.
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.)