New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker Rootless on diskless compute nodes Slirp4netns Issuse #47803
Comments
Could you try running slirp4netns without Docker? https://github.com/rootless-containers/slirp4netns?tab=readme-ov-file#usage It may show more detailed error messages |
moby/contrib/dockerd-rootless.sh Lines 16 to 26 in 4554d87
|
No luck, same error. |
Gives a little bit more of a hint somewhere:
Not sure exactly what |
|
Doing that executes successfully
So unsure what I can configure to allow dockerd-rootless.sh to execute successfully |
Also, when I run the exact same command inside the unshare shell that
|
Description
Hello,
I am attempting to run docker rootless on compute nodes that are running RHEL 8.8 in memory. The OS is not installed to a physical disk and is running in RAM on the physical server.
Refer to steps to reproduce below for information on issue.
Reproduce
If I change to the same user as I am already logged in as, this command executes successfully with the following output:
Expected behavior
dockerd-rootless-setup.sh should create systemd service for user account and run dockerd-rootless.sh with no issue.
docker version
Client: Docker Engine - Community Version: 25.0.3 API version: 1.44 Go version: go1.21.6 Git commit: 4debf41 Built: Tue Feb 6 21:15:16 2024 OS/Arch: linux/amd64 Context: rootless Cannot connect to the Docker daemon at unix:///home/local-user/.docker/run/docker.sock. Is the docker daemon running?
docker info
Client: Docker Engine - Community Version: 25.0.3 Context: default Debug Mode: false Plugins: buildx: Docker Buildx (Docker Inc.) Version: v0.12.1 Path: /usr/libexec/docker/cli-plugins/docker-buildx compose: Docker Compose (Docker Inc.) Version: v2.24.5 Path: /usr/libexec/docker/cli-plugins/docker-compose
Additional Info
Packages installed for docker:
Logs show the following when attempting to execute "dockerd-rootless.sh"
When investigating I notice the line:
localhost dockerd-rootless.sh[159644]: [rootlesskit:parent] error: failed to setup network &{logWriter:0xc000250ae0 binary:slirp4netns mtu:65520 ipnet:<nil> disableHostLoopback:true apiSocketPath: enableSandbox:true enableSeccomp:true enableIPv6:false ifname:tap0 infoMu:{w:{state:0 sema:0} writerSem:0 readerSem:0 readerCount:{_:{} v:0} readerWait:{_:{} v:0}} info:<nil>}: waiting for ready fd (/usr/bin/slirp4netns --mtu 65520 -r 3 --disable-host-loopback --enable-sandbox --enable-seccomp 159656 tap0): slirp4netns failed
I believe the PID (159656) that is being called is an issue? But no idea, I am stumped.
When doing these exact same steps on a normal installed VM, there are no issues at all.
Any help or troubleshooting is appreciated. I would use a different network driver, but have somewhat of a hard requirement on slirp4netns. I am also aware other softwares are more suited for rootless container execution.
The text was updated successfully, but these errors were encountered: