Docker0 not found and host_ip variable is empty

Hello, I have insttaled Docker in EndeavourOs Titan with latest system and docker versions.
For project, when I wiil run I must check docker0 and Host_ip adress.
But docker0 and host_ip have issues(see terminal output):

murzilka-eos@murzilka$ ip addr show docker0                          
Device "docker0" does not exist.
murzilka-eos@murzilka$ echo $host_ip

murzilka-eos@murzilka$ 

How fix it?

It is not an officially supported platform. I remember another report on this forum, but I could not find it now. Possibly because the issue was shared on a screenshot or I just searched badly. .
You can check the engine logs to figure out why the network was not created.

journalctl -e -u docker

I think last time the problem was with some kernel modules for nftables. I’m not sure. But it is possible I just remember this issue on Debian 13

where the error message as

What was the expectation? Why should that variable exist?

output :

murzilka@murzilka-eos$ journalctl -e -u docker
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
-- No entries --
murzilka@murzilka-eos$ 

Oh, sorry I judged too quickly and missed that you are using Docker Desktop. The title contains it but your message only mentioned Docker.

So if you have Docker Desktop, it uses a virtual machine. You will not see the docker0 interface. It will be inside the virtual machine. So if you want access to the docker0 interface, you can install the Docker Engine, not the desktop.

That is not supported on your Linux distribution either, but if it is installable in any way, for example from binaries, you can try that

You can also give this script atry:

I’m not sure how it handles not supported distributions. I looked into the script but I didn’t have the time and mood to understand it. If it doesn’t work, you will know immediately when it fails after checking the OS.

But the best is asking the community or maintainers of your Linux Distribution.

1 Like

Edit: Better than working with Docker in EOS, which is not supported, just install sudo pacman -S podman podman-compose and enjoy!

Thanks for sharing the conclusion. I try to remember it when I see a similar topic next time. Indeed I also read ā€œpodmanā€ most of the times when I searched for Docker and that OS.

1 Like

In real I not found resoving to docker0 problem, and with host_Ip

It is still not work
What If I send project with problem?

Once you switch to Podman, you should not expect having a network interface for docker0. Podman is not Docker, so if your workflow requires having a docker0 interface, you need Docker CE, not Podman and not Docker Desktop. I don’t use Podman, so I have no up-to-date information about whether they can create a docker0 interface in some cases or not, but if you have questions about Podman, you can have better luck in a podman community.

But I assume you still need Docker, so if the operating system maintainers don’t support Docker CE and Docker CE maintainers don’t support the operating system, you can do what I recommended in my first second post and see if the installation script works, or you will need to use a compatible operating system.

Regarding host_:ip, I still don’t know why that would exist. I guess you are following a tutorial that mentions it, but it is not an environment variable that exists on Linux by default. It must be set first and that has nothing to do with Docker.

Maybe if you share what tutorial you are following and why you expect that variable exist or why you need the docker0 interface, we can point you to the right direction. Neither the interface nor the variable is necessary for interactive users for running docker commands normally. If your tutorial requires it, that is a specific case which we don’t know enough about yet.