You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am facing the issue that none of my containers can connect to the internet, not even if I try to use the host network.
I am on Ubuntu 24.04.1 LTS and running Rancher desktop 1.17.1 and I have been able to pinpoint the issue to the conflict that happens between the default subnet instantiated by docker 172.17.0.0/16 and the host ip.
I have scoured online for solutions and the only one that worked was to apply a new bip in the /etc/docker/daemon.json and switching the docker context to vanilla docker.
That was also corroborated by the result of docker network inspect bridge that was showing the correct new ip been used.
Unfortunately when I start Rancher, all of that gets ignored and it re-creates the bridge network with the default broken subnet.
Can you point me to (and maybe add to the documentation) where does rancher looks for these network settings?
My /etc/docker/daemon.json (used by vanilla docker)
Boot up a fresh install of ubuntu 24.04.1 or start live usb session
install rancher desktop
in the terminal run docker run --rm -it busybox ping 1.1.1.1
Result
ping does not show any results
Expected Behavior
Ping returns results
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
64 bytes from 1.1.1.1: icmp_seq=1 ttl=59 time=12.6 ms
64 bytes from 1.1.1.1: icmp_seq=2 ttl=59 time=12.6 ms
Additional Information
No response
Rancher Desktop Version
1.17.1
Rancher Desktop K8s Version
1.31
Which container engine are you using?
moby (docker cli)
What operating system are you using?
Ubuntu
Operating System / Build Version
Ubuntu 24.04.1 LTS
What CPU architecture are you using?
x64
Linux only: what package format did you use to install Rancher Desktop?
deb
Windows User Only
No response
The text was updated successfully, but these errors were encountered:
@emanuelet thanks for filing this issue. I just tested it on 22.04.1 LTS using both Rancher Desktop 1.17.1 and 1.18, and the changes made to the daemon.json seem to persist (not ignored) after starting Rancher Desktop. I would like to suggest a few things for you. First, are you making changes to the correct daemon.json? Since docker in Rancher Desktop runs in the VM, you can access it using rdctl shell. Additionally, you may find helpful information in the Provisioning Scripts guide.
So on 22.04 LTS it works fine, hence why I had to downgrade all my machines to it (22.04.5 to be precise).
Also I want to reiterate that the daemon.json that I posted is the one that is used by Vanilla Docker (Docker Engine), right now I am working on a fresh install of 22.04.5 with Rancher 1.18 and I don't even have a /etc/docker/daemon.json file in the main system.
If I userdctl shelland see the same file inside the VM I get this
Actual Behavior
I am facing the issue that none of my containers can connect to the internet, not even if I try to use the host network.
I am on Ubuntu 24.04.1 LTS and running Rancher desktop 1.17.1 and I have been able to pinpoint the issue to the conflict that happens between the default subnet instantiated by docker 172.17.0.0/16 and the host ip.
I have scoured online for solutions and the only one that worked was to apply a new bip in the
/etc/docker/daemon.json
and switching the docker context to vanilla docker.That was also corroborated by the result of
docker network inspect bridge
that was showing the correct new ip been used.Unfortunately when I start Rancher, all of that gets ignored and it re-creates the bridge network with the default broken subnet.
Can you point me to (and maybe add to the documentation) where does rancher looks for these network settings?
My
/etc/docker/daemon.json
(used by vanilla docker)Steps to Reproduce
docker run --rm -it busybox ping 1.1.1.1
Result
ping does not show any results
Expected Behavior
Ping returns results
Additional Information
No response
Rancher Desktop Version
1.17.1
Rancher Desktop K8s Version
1.31
Which container engine are you using?
moby (docker cli)
What operating system are you using?
Ubuntu
Operating System / Build Version
Ubuntu 24.04.1 LTS
What CPU architecture are you using?
x64
Linux only: what package format did you use to install Rancher Desktop?
deb
Windows User Only
No response
The text was updated successfully, but these errors were encountered: