Closed chatter92 closed 1 year ago
I am also unable to run the dind-rootless base image with a user id.
I tried running
docker run --privileged --name dind -u <UID>:<GID> docker:dind-rootless
and I got the following error:
Device "ip_tables" does not exist.
modprobe: can't change directory to '/lib/modules': No such file or directory
error: attempting to run rootless dockerd but missing necessary entries in /etc/subuid and/or /etc/subgid for 1019
I then added entries to the subuid and subgid files following instructions here Again tried to run as a user and got the following error:
docker run --privileged --name dind -u 1019:1015
Device "ip_tables" does not exist.
modprobe: can't change directory to '/lib/modules': No such file or directory
[rootlesskit:parent] error: failed to setup UID/GID map: newuidmap 66 [0 1019 1 1 66781184 65536 65537 66781184 65536] failed: newuidmap: Target process 66 is owned by a different user: uid:1019 pw_uid:1019 st_uid:1019, gid:1015 pw_gid:1019 st_gid:1015
Not being able to run rootless inside Docker without --privileged
is a known limitation (https://github.com/docker-library/docker/pull/165).
Unfortunately, we do not have the bandwidth to provide in-depth integration/deployment/environment debugging or support here; these sorts of questions/requests would be more appropriately posted to a dedicated support forum, such as the Docker Community Slack, Server Fault, Unix & Linux, or Stack Overflow.
Hi, I am trying to run a multi-process container which has docker daemon and jupyter lab running as process inside it. For this, I am using s6-overlay to run jupyterlab as a service and specifying the dockerd-entrypoint.sh as the executable command. My dockerfile looks like this:
I also added entries in the subuid ad subgid files following the advice from this page
However, when I try to run the container with a UID, I get the following error:
Can someone please point out what I did wrong?