[Bug]: `x86_64` based container using `amazonlinux:2027` cannot use `tar` for extracting archives
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- swift
調査の方向性
The report gives a reproducible failure with emulated x86_64 Amazon Linux 2027 containers and a working arm64 comparison, but names no source files or tests. Start by reading the container run and architecture emulation entry points, then reproduce the tar extraction failure under the reported conditions. Done when the same extraction succeeds on x86_64 and the arm64 behavior remains working.
索引モデルが issue の本文から書いたものです。
説明
I have done the following
- I have searched the existing issues
- If possible, I've reproduced the issue using the 'main' branch of this project
Steps to reproduce
- Launching a new
x86based container usingcontainerbuilt from HEAD:
container run -it --arch amd64 --rm --name al2027 public.ecr.aws/amazonlinux/amazonlinux:2027 bash
- After the container is launched, the following command will fail: (the command will download and install all recent updates using
dnfthen installgzipforgzextraction support, download the source archive of this repo to/tmp, and try to extract content)
bash-5.3# dnf update && dnf upgrade -y && dnf install -y gzip && pushd /tmp && curl --output container_src.tar.gz -fsSL https://github.com/apple/container/archive/refs/tags/1.7.1.tar.gz && tar xzvf container_src.tar.gz
Updating and loading repositories:
Amazon Linux 2027 repository 100% | 1.2 MiB/s | 2.7 MiB | 00m02s
Repositories loaded.
Nothing to do.
Updating and loading repositories:
Repositories loaded.
Nothing to do.
Updating and loading repositories:
Repositories loaded.
Package Arch Version Repository Size
Installing:
gzip x86_64 0:1.14-2.amzn2027 amazonlinux 401.8 KiB
Transaction Summary:
Installing: 1 package
Total size of inbound packages is 175 KiB. Need to download 175 KiB.
After this operation, 402 KiB extra will be used (install 402 KiB, remove 0 B).
[1/1] gzip-0:1.14-2.amzn2027.x86_64 100% | 285.4 KiB/s | 175.3 KiB | 00m01s
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[1/1] Total 100% | 115.1 KiB/s | 175.3 KiB | 00m02s
Running transaction
[1/3] Verify package files 100% | 1.0 KiB/s | 1.0 B | 00m00s
[2/3] Prepare transaction 100% | 200.0 B/s | 1.0 B | 00m00s
[3/3] Installing gzip-0:1.14-2.amzn2027.x86_64 100% | 7.5 MiB/s | 407.3 KiB | 00m00s
Complete!
/tmp /
container-1.7.1/
container-1.7.1/.claude-plugin/
/usr/sbin/tar: container-1.7.1/.claude-plugin: Cannot mkdir: Function not implemented
...
/usr/sbin/tar: container-1.7.1/skills/container/references/docker-migration.md: Cannot open: Function not implemented
/usr/sbin/tar: Exiting with failure status due to previous errors
arm64based container won't run into this issue when running the same command in the container:
$ bin/container run -it --rm --name al2027 public.ecr.aws/amazonlinux/amazonlinux:2027 bash
bash-5.3# dnf update && dnf upgrade -y && dnf install -y gzip && pushd /tmp && curl --output container_src.tar.gz -fsSL https://github.com/apple/container/archive/refs/tags/1.7.1.tar.gz && tar xzvf container_src.tar.gz
Updating and loading repositories:
Amazon Linux 2027 repository 100% | 1.3 MiB/s | 2.7 MiB | 00m02s
Repositories loaded.
Nothing to do.
Updating and loading repositories:
Repositories loaded.
Nothing to do.
Updating and loading repositories:
Repositories loaded.
Package Arch Version Repository Size
Installing:
gzip aarch64 0:1.14-2.amzn2027 amazonlinux 437.7 KiB
Transaction Summary:
Installing: 1 package
Total size of inbound packages is 168 KiB. Need to download 168 KiB.
After this operation, 438 KiB extra will be used (install 438 KiB, remove 0 B).
[1/1] gzip-0:1.14-2.amzn2027.aarch64 100% | 281.1 KiB/s | 168.4 KiB | 00m01s
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[1/1] Total 100% | 121.8 KiB/s | 168.4 KiB | 00m01s
Running transaction
[1/3] Verify package files 100% | 1.0 KiB/s | 1.0 B | 00m00s
[2/3] Prepare transaction 100% | 250.0 B/s | 1.0 B | 00m00s
[3/3] Installing gzip-0:1.14-2.amzn2027.aarch64 100% | 14.9 MiB/s | 443.3 KiB | 00m00s
Complete!
/tmp /
container-1.7.1/
container-1.7.1/.claude-plugin/
....
container-1.7.1/skills/container/references/docker-migration.md
Problem description
tar won't work on emulated x86 based amazonlinux:2027 based containers: when extracting contents from any tar.gz archive, it will failed with messages like
/usr/sbin/tar: container-1.7.1/signing/container-network-vmnet.entitlements: Cannot open: Function not implemented
Environment
- OS: macOS 27.2.1 (26B131)
- Xcode: Version 27.2 (27B52)
- Container: container CLI version 1.7.1 (build: release, commit: unspeci)
Detailed info on container binary
$ bin/container system status
FIELD VALUE
status running
client.version 1.7.1-4-gd6f107c7
client.build release
client.commit d6f107c72643fb8f32a6bdc4ead78ee5b6b7c3b5
host.os Version 27.2.1 (Build 26B131)
host.architecture arm64
host.cpus 16
server.version 1.7.1-4-gd6f107c7
server.build release
server.commit d6f107c72643fb8f32a6bdc4ead78ee5b6b7c3b5
server.appName container-apiserver
paths.appRoot /Users/xliang/Library/Application Support/com.apple.container/
paths.installRoot /Users/xliang/XL/container/
paths.logRoot
containers.total 1
containers.running 0
images.total 11
Code of Conduct
- I agree to follow this project's Code of Conduct
- 主要言語
- Swift
- スター
- 51.9k
- フォーク
- 1.8k
- 平均マージ
- 2日 3時間
- マージ済み PR(30日)
- 27
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apple/container のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
[Bug]: Kernel download ignores credentials in HTTPS_PROXY and fails with proxyAuthenticationRequiredオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
apple/container#2499 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: `container machine logs -f` exits immediately when the log is empty対応中かも @srivilliamsai が 5 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
apple/container#2492 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: Intermittent failure in PathUtilsTests.testNewDirectoryIsExcludedAndExistingChoiceIsKeptオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
apple/container#2474 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
[Request]: container ls --filter label=key=value対応中かも @kavix が 21 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
apple/container#2403 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
apple/container の issue をすべて見る
似ている issue
-
compiler diagnostics quality ownership SIL ownership
難易度 1/5 1時間未満 初心者へのやさしさ 64/100
メンテナーはふだん 1 日以内に返信
-
T-Defect
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
element-hq/element-x-ios#6536 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
fxios-coreexperience
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
mozilla-mobile/firefox-ios#36661 ·
メンテナーはふだん 1 日以内に返信
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
manaflow-ai/cmux#45713 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信