Skip to content

Nitro-cli 1.4.2 can not build encalve with linuxkit 1.5.2 #723

@benjamintshi

Description

@benjamintshi

准备 bug 报告信息

cat > bug-report.txt << EOF
Title: nitro-cli 1.4.2 incompatible with linuxkit v1.5.2 - "Unknown format type kernel+initrd-nogz"

Environment:

  • Nitro CLI Version: 1.4.2
  • Linuxkit Version: v1.5.2
  • OS: $(cat /etc/os-release | grep PRETTY_NAME)
  • Kernel: $(uname -r)

Error:
Linuxkit reported an error while creating the bootstrap ramfs:
"Error: error parsing formats: Unknown format type kernel+initrd-nogz"

Steps to reproduce:

  1. Install nitro-cli 1.4.2
  2. Build any Docker image
  3. Run: nitro-cli build-enclave --docker-uri --output-file test.eif
  4. Error occurs

Expected: Build should complete successfully
Actual: Build fails with "Unknown format type kernel+initrd-nogz"
EOF

Building Nitro Enclave...
Start building the Enclave Image...
Using the locally available Docker image...
Linuxkit reported an error while creating the bootstrap ramfs: "Error: Error parsing formats: Unknown format type kernel+initrd-nogz\n2025/11/10 16:37:13 error during command execution: Error parsing formats: Unknown format type kernel+initrd-nogz\n"
[ E48 ] EIF building error. Such error appears when trying to build an EIF file. In this case, the error backtrace provides detailed information on the failure reason.

For more details, please visit https://docs.aws.amazon.com/enclaves/latest/user/cli-errors.html#E48

If you open a support ticket, please provide the error log found at "/var/log/nitro_enclaves/err2025-11-10T08:37:13.494501125+00:00.log"

cat /var/log/nitro_enclaves/err2025-11-10T08:37:13.494501125+00:00.log
Action: Build Enclave
Subactions:
Failed to build enclave
Failed to build EIF from docker
Failed to create EIF image: LinuxkitExecError
Root error file: src/lib.rs
Root error line: 171

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions