-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Add daemon
or engine
subcommand
#2718
Comments
Ping @AkihiroSuda re: rootless |
We already have dockerd-rootless-setuptool.sh for setting up the systemd unit for the daemon https://github.com/moby/moby/blob/master/contrib/dockerd-rootless-setuptool.sh Does it cover the use case? |
@AkihiroSuda Not really. As a user I want polish, I don't want to hunt down other things for making it work. I just want it to work. I could even see having a special context for rootless (like |
The "default" context SGTM, then we don't need "daemon" sub command? I'd expect it to work like this
|
Toying around with this a bit over the weekend.
Any context created with Edited for typos |
Thanks for opening; wanted to leave a comment, but didn't get to that, so some quick first thoughts;
For rootless install; we also have a roadmap issue for "Docker Desktop for Linux" docker/roadmap#39. If that would be worked on, I can imagine such a package to do a rootless install (and other configurations, e.g. using FUSE for bind-mounts etc) /cc @nebuk89 @chris-crone |
Thinking some more about the "Desktop for Linux" idea; those may still need some command/installer if we want to allow that package to be installed without the tricky bit on Linux is that (also see moby/moby#40761 (comment))
|
It can certainly... however this is not the experience I'd like to have.... or perhaps more correct, I'd like the This is not really any different than other tools out there that depend on a separate "helper" daemons.
This would be implemented for linux only for now. It could be extended to spin up a platform specific VM to run |
In the past,
docker
had the daemon built-in as a single binary under thedaemon
subcommand (or if you go far enough back just the-d
flag as I recall).I propose that we add this subcommand back... only better.
The subcommand would be responsible for setting up the daemon on the client node.
On linux this would be starting a daemon as normal.
If
docker
is run as unprivileged, it could be responsible for setting up all the rootless stuff.Perhaps could be rootless by default or even rootless only (since it is the client after all).
On non-native platforms this could also be extended to support other cases such as spinning up a platform-native VM to run the daemon, setup socket access, etc.
But anything that we don't actually support the subcommand would just error out as not supported.
In any case this would also configure a context to connect to the daemon.
Honestly this is not a concrete proposal, just exploring some ideas.
I think having the rootless experience tied in with the CLI would be extremely interesting.
The text was updated successfully, but these errors were encountered: