travis-ci / packer-templates

Templates for Packer!
MIT License
104 stars 54 forks source link

Update install-docker.sh to set mtu value #845

Closed AbdulhusainHamid1 closed 2 years ago

AbdulhusainHamid1 commented 2 years ago

Update install-docker.sh to set mtu value in /etc/docker/daemon.json. Setting docker mtu value. docker container mtu should be less than or equal to host mtu. It should not be more than host mtu. In case, where docker container mtu is greater than host mtu. curl downloads are failed.

What is the problem that this PR is trying to fix?

docker container mtu should be less than or equal to host mtu. It should not be more than host mtu. In case, where docker container mtu is greater than host mtu. curl downloads are failed

What approach did you choose and why?

Setting mtu value in file /etc/docker/daemon.json. So that, docker container mtu will be less than or equal to host mtu.

How can you test this?

It can be tested by downloading file from jfrog using curl command. It will fail to download because of mtu different in docker and host.

What feedback would you like, if any?

It can be fixed in base image.

svghadi commented 2 years ago

cc: @DamianSzymanski @cesar-cs