Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Docker イメージのマルチアーキテクチャビルド / docker-muti-arch-b...
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
shin1x1
December 21, 2021
Programming
550
1
Share
Docker イメージのマルチアーキテクチャビルド / docker-muti-arch-build
shin1x1
December 21, 2021
More Decks by shin1x1
See All by shin1x1
Xdebug と IDE による デバッグ実行の仕組みを見る / Exploring-How-Debugging-Works-with-Xdebug-and-an-IDE
shin1x1
0
460
抽象化という思考のツール - 開発現場での活用 - / Abstraction-as-a-Tool-for-Thinking-in-dev
shin1x1
0
150
抽象化という思考のツール - 理解と活用 - / Abstraction-as-a-Tool-for-Thinking
shin1x1
1
1.4k
php-fpm がリクエスト処理する仕組みを追う / Tracing-How-php-fpm-Handles-Requests
shin1x1
6
4k
PHP ユーザのための OpenTelemetry 入門 / phpcon2024-opentelemetry
shin1x1
3
2.4k
PHPコードの実行モデルを理解する / Understanding-the-PHP-Execution-Model
shin1x1
2
3.2k
制約の力 - 状態を限定する -
shin1x1
6
5.7k
Apple Silicon Mac 時代の PHP 開発環境構築 2021 / php-dev-env-on-m1-mac-era
shin1x1
2
4.9k
Domain modeling with PHP / domain-modeling-with-php-en
shin1x1
1
330
Other Decks in Programming
See All in Programming
My daily life on Ruby
a_matsuda
3
410
AIベース静的検査器の偽陽性率を抑える工夫3選
orgachem
PRO
4
460
PicoRuby for IoT: Connecting to the Cloud with MQTT
yuuu
2
780
20260514_its_the_context_window_stupid.pdf
heita
0
1k
開発体験を左右するライブラリの API 設計 - GraphQL スキーマ構築ライブラリから考える #tskaigi
izumin5210
1
150
Migrations : C'est une question d'hygiène !
vinceamstoutz
0
240
SkillsをS3 Filesに置く時のあれこれ
watany
3
1.6k
AI時代のエンジニアリングの原則 / Engineering Principles in the AI Era
haru860
0
1.3k
開発とはなにか、Essenceカーネルで見えるもの
ukin0k0
0
190
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
380
Structured Concurrency, Scoped Values and Joiners in the JDK 25 26 27
josepaumard
1
150
属人化しないコード品質の作り方_2026.04.07.pdf
muraaano
1
360
Featured
See All Featured
sira's awesome portfolio website redesign presentation
elsirapls
0
250
Agile that works and the tools we love
rasmusluckow
331
21k
The Invisible Side of Design
smashingmag
302
52k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.3k
Context Engineering - Making Every Token Count
addyosmani
9
890
A Tale of Four Properties
chriscoyier
163
24k
Being A Developer After 40
akosma
91
590k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.9k
We Have a Design System, Now What?
morganepeng
55
8.1k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
370
Optimizing for Happiness
mojombo
378
71k
Marketing to machines
jonoalderson
1
5.3k
Transcript
Docker イメージのマルチアーキテクチャビルド 2021/12/21 @shin1x1
Docker イメージ linux/amd64: Intel Mac で利用するイメージ linux/arm64: Apple Silion Mac
で利用するイメージ 異なるアーキテクチャイメージもいちおう動作するが、 動作が遅くなったり、挙動が不安になるケースも 動作する環境に合わせたイメージを作ろう! 2
Docker Buildx によるマルチアーキテクチャビルド https://docs.docker.com/buildx/working-with-buildx/ 3
ビルドする Dockerfile FROM debian:bullseye CMD uname -m Docker イメージビルド &
プッシュ $ docker buildx build --platform linux/amd64,linux/arm64 \ -t shin1x1/sample --push . --platform でターゲットを指定 --push で Docker Hub への push も同時に行う 4
できた! 5
M1 Mac で実行すると aarch64 を出力 $ docker run --rm shin1x1/sample
aarch64 --platform オプションで amd64 イメージを実行 $ docker run --rm --platform linux/amd64 shin1x1/sample x86_64 6
詳細は blog で https://blog.shin1x1.com/entry/docker-multi-arch-build-on-github-actions 7