-
Notifications
You must be signed in to change notification settings - Fork 18.6k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
dockerd-rootless-setuptool.sh: add nsenter
subcommand (for debugging)
#47084
dockerd-rootless-setuptool.sh: add nsenter
subcommand (for debugging)
#47084
Conversation
nsenter
subcommandnsenter
subcommand (for debugging)
623b25f
to
3273731
Compare
Some failures; not sure if related in any way; perhaps you could try a rebase to get a fresh run? |
3273731
to
054ad0a
Compare
054ad0a
to
4bf86fb
Compare
XDG_RUNTIME_DIR will contain sockets so its path mustn't be too long. Prior to this commit, it was set to very long path like `/go/src/github.com/docker/docker/bundles/test-integration/TestDiskUsage/de4fb36576d7d/xdgrun` Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Now the state dir is set to `${XDG_RUNTIME_DIR}/dockerd-rootless`. This is similar to `${XDG_RUNTIME_DIR}/containerd-rootless` used in nerdctl: https://github.com/containerd/nerdctl/blob/v1.7.2/extras/rootless/containerd-rootless.sh#L35 Prior to this commit, the state dir was unset and a random dir under `/tmp` was used. (e.g., `/tmp/rootlesskit1869901982`) Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Usage: `dockerd-rootless-setuptool.sh nsenter -- ip a` Expected to be used for debugging. Ported from nerdctl's `containerd-rootless-setuptool.sh` https://github.com/containerd/nerdctl/blob/v1.7.2/extras/rootless/containerd-rootless-setuptool.sh#L142-L147 Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
4bf86fb
to
84d2229
Compare
Now CI is green (I had to add testutil/daemon: shorten XDG_RUNTIME_DIR) |
Arf.. those "too long" paths keep on coming back. Perhaps something we should look into at some point (maybe use some short temp-dir somewhere for test-daemons to put the socket in). In either case, that's a separate concern, good for handling separate / follow up work. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
- What I did
Added
nsenter
subcommand todockerd-rootless-setuptool.sh
.Expected to be used for debugging.
- How I did it
Ported
containerd-rootless-setuptool.sh nsenter
(part of nerdctl) todockerd-rootless-setuptool.sh
https://github.com/containerd/nerdctl/blob/v1.7.2/extras/rootless/containerd-rootless-setuptool.sh#L142-L147
- How to verify it
- Description for the changelog
dockerd-rootless-setuptool.sh: add
nsenter
subcommand (for debugging)- A picture of a cute animal (not mandatory but encouraged)
馃惂