Skip to content
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

Move docker-init to /usr/libexec/docker/ #80

Merged
merged 2 commits into from
Jul 28, 2023
Merged

Conversation

cpuguy83
Copy link
Member

Starting with docker v24 dockerd will lookup docker-init in more than just $PATH, including /usr/libexec/docker/*.
Moving it here is both more "correct" in terms of linux userspace layout, but also gets us away from needing to mark moby-engine < 24 as conflicting.

@cpuguy83 cpuguy83 marked this pull request as draft July 27, 2023 23:02
@cpuguy83 cpuguy83 marked this pull request as ready for review July 27, 2023 23:14
Copy link
Contributor

@pmengelbert pmengelbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of questions

Makefile Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
Copy link
Contributor

@pmengelbert pmengelbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Starting with docker v24 dockerd will lookup docker-init in more than
just $PATH, including /usr/libexec/docker/*.
Moving it here is both more "correct" in terms of linux userspace
layout, but also gets us away from needing to mark moby-engine < 24 as
conflicting.
This was not handling the nested `linux_<arch>` for tests so the tests
were always running against whatever was in the package repo.
Now if its in bundles it will use those packages.
@cpuguy83 cpuguy83 merged commit fe5adf8 into Azure:main Jul 28, 2023
4 checks passed
@cpuguy83 cpuguy83 deleted the tini_libexec branch July 28, 2023 17:37
pmengelbert added a commit that referenced this pull request Aug 2, 2023
PR #80 changed the `moby-tini` package such that the `docker-init`
binary will be installed to `/usr/libexec/docker/docker-init`.
Therefore, it no longer conflicts with the `/usr/bin/docker-init`
installed by the `moby-engine` package prior to version 24.

Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants