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
rootless: First call via socket activation always times out #42078
Comments
/cc @AkihiroSuda |
This is not supported in the official installation script, so let me set I'm not sure whether we can support this, but probably we can, by modifying RootlessKit to propagate FDs. |
Installing all the pieces manually without the script yields the same results -- or do you mean |
Rootless is official, but rootless with |
Ah, understood. FWIW, without support for passing the |
As a workaround, until |
Using
The only downside I can see is that people running something like |
An |
Description
With docker rootless running via systemd socket activation, the first call to docker always times out.
The service is started fine though, but never responds to this request. Subsequent requests work fine.
Manually starting docker (
systemctl --user start docker.service
) works fine.The issue does not happen when running docker via the system systemd.
Steps to reproduce the issue:
docker.socket
and docker is not running.docker ps
Describe the results you received:
Docker should respond to this request.
Describe the results you expected:
Docker times out for this request.
Additional information you deem important (e.g. issue happens only occasionally):
system/docker.service
hasExecStart=/usr/bin/dockerd -H fd://
, whereasuser/docker.service
hasExecStart=/usr/bin/dockerd-rootless.sh
.Since
dockerd-rootless.sh
passes all arguments todocker
, I tried changing that last line toExecStart=/usr/bin/dockerd-rootless.sh -H fd://
. This did not work:It seems that something else needs to be done for the wrapper to pass down the file handler.
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
On ArchLinux. I maintain the
docker-rootless-extras-bin
package, which installs the rootless extras. All files are identical to what upstream bundles, with the exception ofdocker.socket
, since upstream has no systemd.socket file.Using pure upstream +
docker.socket
has the same issues.The text was updated successfully, but these errors were encountered: