Replies: 2 comments 4 replies
-
You can see the ‘config.json’ in the docker, maybe you can find it in ‘/run/containerd’ with container’s id. |
Beta Was this translation helpful? Give feedback.
-
This error:
is because runc doesn't have permissions to get the requested mappings. If you have privileges to edit In addition, the mapping in your original comment ( If you don't have admin privileges on the machine, then your best bet is to let the container user be root inside the container. Linux only allows unprivileged user namespaces to map a single uid and gid (
Linux also lets you map only your own user, but I suspect this won't work:
|
Beta Was this translation helpful? Give feedback.
-
Hi,
I am trying to use a simulation tool, DAFoam (https://dafoam.github.io/), in a cluster managed with SLURM. DAFoam can be downloaded as a docker image for simplicity, but docker is not supported by SLURm at least the version installed, 21.08 (https://slurm.schedmd.com/archive/slurm-21.08.5/containers.html). It supports, however, OCI Runtime.
I exported the docker image to a OCI folder, and I managed to make it work with
sudo
. When I try to run it withoutsudo
I get a permission error:The config.json file is this one:
I want to enter the container as the user 1000, not root. Even entering wth
sudo
, I get the user correctly, but $HOME is still defined as/root
.Summarizing, I would like to execute this OCI container with the same options defined by DAFoam developer for docker:
but I don't know how to modify the
config.json
file in order to get this.Regards
Robert
Beta Was this translation helpful? Give feedback.
All reactions