how to change MTU inside docker container on ubuntu 14.4

I want to change MTU(Maximum Transmission Unit) inside docker which is running on ubuntu 14.04. Also docker container running with ubuntu 14.04.

The problem is that its docker0 interface on host os can change the MTU value from 1500 to 9000 but its doesn’t gives affects inside docker os. means inside docker it is running with a older value i.e 1500. And when I restart the docker services on host machine its all changes goes to default.

  • Craft CMS Manager Craftman - No such file or directory: '//docker-compose.yml'
  • Docker. Show stopped containers
  • How to share my Docker-Image without using the Docker-Hub?
  • How to setup jenkins blue ocean under Windows with docker agent
  • How to use sqlite3 file from different docker containers?
  • Vagrant or Docker for environment development
  • I had also tried with creating bridge connection with new interface but while I up that interface its down my whole network and doesn’t work anymore.

    Help will be highly appreciated

  • How do I give an own ip address to docker for Windows container?
  • OpenShift and persistent Redis config
  • Create your own Docker (sub-)commands
  • how to securely connect to a mysql server running on a virtual machine
  • Deploy ASP.NET core to Azure Container Service (Swarm mode)
  • How to check if the restart policy works of Docker
  • One Solution collect form web for “how to change MTU inside docker container on ubuntu 14.4”

    See extract “

    --mtu=BYTES — override the maximum packet length on docker0.

    On Ubuntu you would add these to the DOCKER_OPTS setting in /etc/default/docker on your Docker host and restarting the Docker service.”

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.