I tried to install Docker on Fedora 35 with the following commands:
sudo dnf -y install dnf-plugins-core
sudo dnf config-manager \
--add-repo \
https://download.docker.com/linux/fedora/docker-ce.repo
sudo dnf install docker-ce docker-ce-cli containerd.io
But, I got the 404 error for the repository:
errors during downloading metadata for repository ‘docker-ce-stable’:
Status code: 404 for https://download.docker.com/linux/fedora/35/x86_64/stable/repodata/repomd.xml (IP: 13.227.108.44)
Error: Falha ao baixar os metadados do repo. ‘docker-ce-stable’: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Does anyone know how to solve this?
3 Likes
ankursinha
(Ankur Sinha)
October 11, 2021, 6:35pm
2
EDIT (Monday 25 October 2021): Update: the repo has been published for Fedora 35 now, so the workaround here is no longer required. Please replace 34
with $releasver
in your repository files if you’d made that change.
Hello,
Welcome to the forums.
That’s because docker have not yet made a repository for Fedora 35. So for the time being, you’ll have to use their F34 packages. You’ll need to tweak your /etc/yum.repos.d/docker-ce.repo
file to replace $releasever
(which on Fedora 35 is 35
) with 34
.
So, it’ll look like this:
[docker-ce-stable]
name=Docker CE Stable - $basearch
baseurl=https://download.docker.com/linux/fedora/34/$basearch/stable
enabled=1
gpgcheck=1
gpgkey=https://download.docker.com/linux/fedora/gpg
...
I check from time to time to see if docker have made a repo from F35 yet. When that happens, we’ll need to undo this change.
3 Likes
hhlp
(Héctor Louzao)
October 12, 2021, 10:15am
3
Please follow up this ticket in UPSTREAM Project → Docker GITHUB:
opened 08:21AM - 08 Sep 21 UTC
closed 04:33PM - 25 Oct 21 UTC
[x] This is a feature request
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.
### COMMENT
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 35 might have a beta release on — **2021-09-21** and the Final Version Will be ready
**2021-10-26**.
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 35 release cycle...
### NOTE
Some of us migrate when the beta version is ready so we have to disable the repository and wait for it to be ready
### REFERENCES
Release Schedule: https://fedorapeople.org/groups/schedule/f-35/f-35-key-tasks.html
Regards.,
Regards.,
2 Likes
ankursinha
(Ankur Sinha)
October 25, 2021, 6:24pm
4
Update: the repo has been published for Fedora 35 now, so the workaround here is no longer required. Please replace 34
with $releasver
in your repository files if you’d made that change.
1 Like