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

Installting "docker in docker" and "docker outside of docker" with moby 26.1.5/26.1.4/24.0.9 on linux/arm64 fails at postinstall script #1205

Closed
hellt opened this issue Nov 28, 2024 · 4 comments

Comments

@hellt
Copy link

hellt commented Nov 28, 2024

Description

when installing moby 26.1.5 via devcontainer feature defined like this:

"features": {
        "ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
            "version": "26.1.5",
            "dockerDashComposeVersion": "none"
        },

I get the following in the installation log

 [2024-11-28T17:57:04.286Z] #51 23.16 Get:2 https://packages.microsoft.com/repos/microsoft-debian-bookworm-prod bookworm/main arm64 moby-cli arm64 26.1.5-debian12u1 [15.9 MB]

[2024-11-28T17:57:13.297Z] #51 32.05 Setting up moby-cli (26.1.5-debian12u1) ...
  #51 32.06 Error while loading /var/lib/dpkg/info/moby-cli.postinst: Exec format error
  #51 32.06 dpkg: error processing package moby-cli (--configure):
  #51 32.06  installed moby-cli package post-installation script subprocess returned error exit status 1

Is this is a MSFT packaging problem?

@hellt hellt changed the title Installting docker in docker with moby 26.1.5 on linux/amd64 fails Installting "docker in docker" and "docker outside of docker" with moby 26.1.5/26.1.4/24.0.9 on linux/amd64 fails at postinstall script Nov 28, 2024
@hellt
Copy link
Author

hellt commented Nov 28, 2024

tested 26.1.5, 26.1.4 and 24.0.9.
All fail when running in gh actions with linux/amd64 emulated platform

@hellt
Copy link
Author

hellt commented Nov 29, 2024

The root cause seems to be in the incompatible (?) postinstall script that does not handle the --configure argument.

More details here moby/moby#48987 (comment)

@bamurtaugh
Copy link
Member

Thanks for opening this and providing all the great insights.

I think this would be covered by #1206, so closing in favor of that issue. If these are separate though, please just let me know, and I'm more than happy to reopen.

@hellt hellt changed the title Installting "docker in docker" and "docker outside of docker" with moby 26.1.5/26.1.4/24.0.9 on linux/amd64 fails at postinstall script Installting "docker in docker" and "docker outside of docker" with moby 26.1.5/26.1.4/24.0.9 on linux/arm64 fails at postinstall script Dec 17, 2024
@hellt
Copy link
Author

hellt commented Dec 17, 2024

Oh, sorry. This was resolved in the meantime... I had no qemu setup step in my CI pipeline, so the emulation was not there. After adding it -- installation got through

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

No branches or pull requests

2 participants