Open alexmge opened 1 year ago
Maybe you can add a test for this problem to not happen again? Just starting the image and running yum
in it shows the problem.
It seems to be fixed, now. Thanks!
$ docker pull fedora:rawhide
rawhide: Pulling from library/fedora
83fb1a35b0ac: Pull complete
Digest: sha256:78c8f111a898e239660961ba0815782a866e55c3b88e5478e8b423e0872bf0cb
Status: Downloaded newer image for fedora:rawhide
docker.io/library/fedora:rawhide
$ docker images -a
REPOSITORY TAG IMAGE ID CREATED SIZE
fedora rawhide 4e956bfeffc9 28 hours ago 191MB
$ docker run --interactive --tty --entrypoint bash fedora:rawhide
[root@6c9c950f9049 /]# cat /etc/dnf/dnf.conf
# see `man dnf.conf` for defaults and possible options
[main]
gpgcheck=True
installonly_limit=3
clean_requirements_on_remove=True
best=False
skip_if_unavailable=True
tsflags=nodocs
Looks like the
dnf.conf
file located in/etc/dnf/dnf.conf
is broken since the latest update of the rawhide image. Whenever trying to install something usingdnf install
I get the following error :Config error: Parsing file "/etc/dnf/dnf.conf" failed: Parsing file '/etc/dnf/dnf.conf' failed: IniParser: Missing section header at line 1
. Indeed, it seems like the file is missing at least the[main]
tag at the first line.dnf.conf
infedora:latest
image:dnf.conf
infedora:rawhide
image: