We were having issues fetching packages from some remote repositories via the composer package manager, we traced it down to have something to do with t he network and with the MTU setting.
Using a workaround provided by a kind fellow - we made an image that solved our issue (by extending the docker entrypoint script provided by the docker team that made the dind image).