-
Notifications
You must be signed in to change notification settings - Fork 379
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
Using x11docker with Docker Rootless Mode #327
Comments
Thank you for the ticket, I wasn't aware that docker supports rootless mode now. I'll look closer at this to support rootless docker well. Currently I cannot get back from rootless to rootful mode and docker is entirely broken on my system. Even a purge and reinstall didn't fixed the issues. sigh. |
Thanks for the quick reply (and sorry for the broken system :) ). The fix is perfect for me now; using I hope support for rootless will be eventually added, I think there are numerous use cases for that. As for the system: now I am running a rootful and a rootless daemon at the same time, using |
For now I won't investigate further but wait some time. I'll get a better internet connection within this year that makes building and downloading images for test runs easier than now. Quite unfortunate that rootless docker does not just allow to use the images of rootful docker but wants its own storage. That would save a lot of resources. |
x11docker supports rootless docker now.
Now this works here as well. :-) Not sure what went wrong the first time. |
Currently I'd rather recommend |
Starting from Docker Engine v20.10 docker allows running the daemon as a non-root user.
I successfully installed it on a fresh Arch installation following this guide, and indeed, after setting the
$DOCKER_HOST
variable tounix://$XDG_RUNTIME_DIR/docker.sock
, containers can be created and run as a regular user with the same command and syntax as previously with the root daemon.However, seemingly x11docker is not working with it.
I tried to run this:
x11docker x11docker/fvwm xterm
And it refused to start, complaining for not getting PID 1.
Switching back to the root daemon, everything works fine (with x11docker prompting for password).
Is it possible to use x11docker with docker daemon not running as root? If not, is it planned to be made available in the future?
(I am almost completely new to the topic, so please forgive me if it's just me trying it the wrong way)
Thanks in advance.
The text was updated successfully, but these errors were encountered: