When exposing ports from a container, docker will dig a whole through your UFW and you lose the ability to control traffic for the specific container traffic. In this post, I explain how to easily use Docker and UFW simultaneously without losing control of traffic into and out of containers.