question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow to specify docker network options, such as mtu

See original GitHub issue

Describe the enhancement It would be great to set up custom options for networks created for container jobs. As of now, it is only possible to pass options to docker create command via jobs.<job_id>.container.options

Code Snippet This could look this way:

container:
  image: centos:7
  network:
    options:
      mtu: 1400

Additional information See, according to https://github.com/moby/moby/issues/34981 , docker daemon options, such as mtu, are not passed to new bridge networks. So my CI jobs fail while trying to e. g. run yum -y update.

NOTE: if the feature request has been agreed upon then the assignee will create an ADR. See docs/adrs/README.md

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:22
  • Comments:9

github_iconTop GitHub Comments

3reactions
alexdepalexcommented, Feb 18, 2022

Instead of applying all these hacks and using non-official container image (although thanks for making that available @tiagoblackcode), can we get this fixed in the runner itself? Seems like it comes down to checking the MTU from the network bridge and using that when creating the network.

https://github.com/actions-runner-controller/actions-runner-controller/issues/1046#issuecomment-1041354554

3reactions
kim0commented, Sep 23, 2021

Hello @sharonovd … The lack of possibility to set MTU has bit me hard the past few days. Is there any progress on this front? Any workarounds available today to pass custom options at the docker network create step ? Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

docker network create
If you want to create an externally isolated overlay network, you can specify the --internal option.
Read more >
Docker MTU issues and solutions - Matthias Lohr
I like this solution because the default MTU of 1500 can stay in place for the default bridge network and for the bridges...
Read more >
Fixing Docker's MTU Issues on Ubuntu
Learn how to optimize Docker's MTU settings to prevent connectivity issues and enhance your Docker experience, especially on Ubuntu systems.
Read more >
How we spent a full day figuring out a MTU issue with docker
I decided to change the network mode of my container. Instead of bridge which is the default network mode, I tried the host...
Read more >
Understanding Docker's -net=host Option
In this post we will learn briefly about various networking modes available for Docker containers and deep dive into Host Mode networking.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found