for-linux icon indicating copy to clipboard operation
for-linux copied to clipboard

Please provide a Docker repo for Fedora 42

Open hhlp opened this issue 1 year ago • 44 comments

[] This is a bug report [x]This is a feature request [x] I searched existing issues before opening this one

The Docker-CE Fedora repository is the recommended way to install it. It has many benefits over installing from a package or any other method.

Fedora also releases a new version every six months. The Fedora repository also takes a very long time to become ready after the release of a new version, with many issues being opened after each recent Fedora is released.

Fedora has officially branched Version 42 might have a beta release on — 2025-03-18 and the Final Version Will be ready 2025-04-22 — Final release target date 1

I'm filing this issue to hopefully put this task on the radar so that there might be a repository set up in time for the Fedora 42 release cycle...

NOTE

Some of us migrate when the beta version when is ready so we have to disable the repository and wait for it to be ready

Release Schedule: https://fedorapeople.org/groups/schedule/f-42/f-42-key-tasks.html

Regards.,

hhlp avatar Mar 04 '25 15:03 hhlp

Fedora 42 is getting an early release (April 15) and it's already available for DNF installs.

Leonid99 avatar Apr 12 '25 04:04 Leonid99

+1. Fedora 42 is out. Can't install docker on fedora 42.

CodeDead avatar Apr 14 '25 20:04 CodeDead

I just discovered that there's a test repository: https://download.docker.com/linux/fedora/42/x86_64/test/Packages/

simonhammes avatar Apr 14 '25 23:04 simonhammes

I just discovered that there's a test repository: download.docker.com/linux/fedora/42/x86_64/test/Packages

Yep, this actually makes re-installing it pretty easy:

If you have followed the official instructions to install it in the past, you should already have /etc/yum.repos.d/docker-ce.repo file, with docker-ce-test repo disabled in it.

So the cleanest way is to add --enablerepo=docker-ce-test to the dnf install command - simply run:

sudo dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin --enablerepo=docker-ce-test

and then

sudo systemctl enable --now docker

Your previous docker containers will be preserved.

utkuozdemir avatar Apr 16 '25 09:04 utkuozdemir

package for Fedora 42 is already available, see https://download.docker.com/linux/fedora/42/x86_64/stable/Packages/ I think ticket can be closed 💯

binhpv avatar Apr 17 '25 15:04 binhpv

WIth the released 28.0.1 version I still experience containers not having internet connection as mentioned here. I have to change firewalld config FirewallBackend=nftables into FirewallBackend=iptables to workaround this. Is this as expected, a bug, or per haps due to some misconfiguration?

dennisverspuij avatar Apr 17 '25 18:04 dennisverspuij

@dennisverspuij I think me and you are having the same issue, I made a issue here about this #1534

LucaSilva-r avatar Apr 18 '25 07:04 LucaSilva-r

WIth the released 28.0.1 version I still experience containers not having internet connection as mentioned here. I have to change firewalld config FirewallBackend=nftables into FirewallBackend=iptables to workaround this. Is this as expected, a bug, or per haps due to some misconfiguration?

definitely, upgraded, pruned everything, nothing worked but your solution

neo87cs avatar Apr 18 '25 09:04 neo87cs

28.1.1-1.fc42 just released, but doesn't fix it. I just found out the problem may be due to a bug introduced in iptables-nft-1.8.11-4.fc42, which is misleading Docker while its pushing its rules. I assume we have to await updated iptables package instead.

dennisverspuij avatar Apr 18 '25 13:04 dennisverspuij

@dennisverspuij same problem, i have iptables v1.8.11. Did u solved this in any other way?

gianlucalauro avatar Apr 18 '25 16:04 gianlucalauro

@dennisverspuij same problem, i have iptables v1.8.11. Did u solved this in any other way?

I really don't recommend you do this, but it should work, in a pinch:

sudo systemctl stop firewalld
sudo iptables -F
sudo nft flush ruleset
sudo systemctl restart docker

We should wait for the updated iptables-nft package upstream

CodeDead avatar Apr 18 '25 16:04 CodeDead

The only solution that worked reliably for me was to self compile the iptables-nft package including the upstream patch. Without this, my containers attached to external networks would always break after some time

fanginoort avatar Apr 19 '25 13:04 fanginoort

A new update for iptables is now in testing for fedora 42 and it will solve the problem.

CodeDead avatar Apr 20 '25 18:04 CodeDead

A new update for iptables is now in testing for fedora 42 and it will solve the problem.

Fix confirmed, thanks very much! Hopefully without Easter eggs 😄

dennisverspuij avatar Apr 21 '25 14:04 dennisverspuij

I think its a little late, but this work for me.
After run this sudo dnf -y install dnf-plugins-core sudo dnf-3 config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo I run: nano /etc/yum.repos.d/docker-ce.repo And then I modified the file to change the $releasever for 42 Example: ` [docker-ce-test] name=Docker CE Test - $basearch baseurl=https://download.docker.com/linux/fedora/42/$basearch/test enabled=0 gpgcheck=1 gpgkey=https://download.docker.com/linux/fedora/gpg

[docker-ce-test-debuginfo] name=Docker CE Test - Debuginfo $basearch baseurl=https://download.docker.com/linux/fedora/42/debug-$basearch/test enabled=0 gpgcheck=1 gpgkey=https://download.docker.com/linux/fedora/gpg `

josejuniorpgx avatar Apr 27 '25 18:04 josejuniorpgx

It seems the update of iptables-nft 1.8.11-6 breaks Docker again. Docker can't find iptables...

stargolems avatar Apr 28 '25 07:04 stargolems

It seems the update of iptables-nft 1.8.11-4 breaks Docker again. Docker can't find iptables...

This is the old version. 1.8.11-5 has fixed this problem and has been in stable for about a week or so

CodeDead avatar Apr 28 '25 07:04 CodeDead

I'm having the same problem, but non of the solutions above seem to work for me.

I reinstalled docker from scratch without any custom config.

docker-buildx-plugin.x86_64      0.23.0-1.fc42   docker-ce-stable
docker-ce.x86_64                 3:28.1.1-1.fc42 docker-ce-stable
docker-ce-cli.x86_64             1:28.1.1-1.fc42 docker-ce-stable
docker-ce-rootless-extras.x86_64 28.1.1-1.fc42   docker-ce-stable
docker-compose-plugin.x86_64     2.35.1-1.fc42   docker-ce-stable
iptables-libs.x86_64 1.8.11-6.fc42 <unknown>
iptables-nft.x86_64  1.8.11-6.fc42 <unknown>

But still get the following error when trying to start the docker service:

failed to start daemon: Error initializing network controller: error obtaining controller instance: failed to register "bridge" driver: failed to create NAT chain DOCKER: COMMAND_FAILED: INVALID_IPV: 'ipv4' is not a valid backend or is unavailable
docker.service: Main process exited, code=exited, status=1/FAILURE

Can anyone give me a hint what could be wrong here?

Catscratch avatar Apr 28 '25 08:04 Catscratch

I can confirm, that newer version 1.8.11-6 breaks docker again. Looks like it's already reported in bugzilla.

tomkr4l avatar Apr 28 '25 08:04 tomkr4l

It seems the update of iptables-nft 1.8.11-4 breaks Docker again. Docker can't find iptables...

This is the old version. 1.8.11-5 has fixed this problem and has been in stable for about a week or so

Sorry, it was a typo. I meant 1.8.11-6...

stargolems avatar Apr 28 '25 08:04 stargolems