Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Setting a MTU for dind is difficult #103
moby/moby#36659 isn't fixed for me yet, but assuming at some point it is setting the MTU is currently a bit tricky for the dind image in certain scenarios.
In my case I want to run dind as a service to GitLab CI builds running in Kubernetes. For that to work I need to control the MTU of the docker bridge and I have limited control of how the service is started. Basically only really able to specify environment and and image (not able to interact with entrypoint).
I think I have 2 options.
If 2, I'm willing to do the work writing and testing a PR given some direction on what sort of approach would be ideal. Or just testing someone else's PR. :-D
Duplicate of #102.
As a side note, you can specify
oh you're right because I closed it. I don't github much and have never been able to re-open an issue before.
I don't know what was happening over there but I think it was a combination of it being hard to set for the container and some weird behaviors in how docker handles mtu.
I assume its possible to do
After some tentative ( "I became mad about it" ), I figured out how to do it. Though this is referred in multiple locations I could not find a a clear explanation.
To test it inside the Gitlab container you should get:
I was mislead from the Gitlab documentation where the example show only the first version.