Even though an application works fine on a developer's local Docker installation, you need to be able to guarantee that if you take the application and deploy it to, for example, a Kubernetes cluster, it works in the same way.
Nine out of ten times you will not have a problem, but you do need to consider how the application is communicating internally with other containers within the same application set.