Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

no able to perform a dnf update in a fedora container #868

Open
GabyCT opened this issue Dec 18, 2017 · 6 comments
Open

no able to perform a dnf update in a fedora container #868

GabyCT opened this issue Dec 18, 2017 · 6 comments

Comments

@GabyCT
Copy link
Contributor

GabyCT commented Dec 18, 2017

It is not possible to do an update in a fedora container
docker run -td --name test fedora sh

docker exec test sh -c "dnf -y update"
BDB0126 mmap: Invalid argument

Configurations:
cc-runtime : 3.0.10
commit : 3d402d1
OCI specs: 1.0.0-dev
Docker 1.17.09

@grahamwhaley
Copy link
Contributor

I suspect this is the mmap issue that is iirc related to 9p.
Can you check if the current '9p tmpfs' workaround fixes it? Hmm, that is if dnf honours TMPDIR and the like.
So, inside the container set export TMPDIR=/dev/shm to point at a ramfs fs, and then try again.
Failing that - an strace of the failing dnf could help further diagnosis.

@jodh-intel
Copy link
Contributor

This does indeed look like the old 🌰 intel/cc-oci-runtime#669.

@jodh-intel
Copy link
Contributor

(See intel/cc-oci-runtime#669 (comment) for the ramfs workaround).

@devimc
Copy link

devimc commented Dec 19, 2017

this issue was fixed in qemu 2.10 (last time I tested) :)

@grahamwhaley
Copy link
Contributor

@jodh-intel - that 'old' fix will no longer work as we have tightened the privs in the CC containers, so you cannot do the mount from inside the container any more :-) The 'new' fix (workaround) is to try and point the apps to use an existing tmpfs in the container for their tmp space:

export TMPDIR=/dev/shm; <your command here>

@devimc - so, that begs the question - do you know when that will land into a version of CC ?

@jodh-intel
Copy link
Contributor

Hi @grahamwhaley - I think this should be captured atleast in the wiki, but ideally in https://github.com/clearcontainers/runtime/blob/master/docs/limitations.md.

mcastelino pushed a commit to mcastelino/runtime that referenced this issue Dec 6, 2018
Both of the netmon and proxy should use the right path
figured out from the configure instead of the default settings
to get their versions.

Fixes: clearcontainers#868

Signed-off-by: Fupan Li <lifupan@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants