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
shin1x1
December 21, 2021
Programming
1
470
Docker イメージのマルチアーキテクチャビルド / docker-muti-arch-build
shin1x1
December 21, 2021
Tweet
Share
More Decks by shin1x1
See All by shin1x1
PHP ユーザのための OpenTelemetry 入門 / phpcon2024-opentelemetry
shin1x1
3
1.8k
PHPコードの実行モデルを理解する / Understanding-the-PHP-Execution-Model
shin1x1
1
2.1k
制約の力 - 状態を限定する -
shin1x1
4
4.6k
Apple Silicon Mac 時代の PHP 開発環境構築 2021 / php-dev-env-on-m1-mac-era
shin1x1
2
4.6k
Domain modeling with PHP / domain-modeling-with-php-en
shin1x1
0
240
ドメインをモデリングしてPHPコードに落とし込む / domain-modeling-with-php8
shin1x1
14
7.1k
PHP 8 で作る JSON パーサ / php8-json-parser
shin1x1
1
3.7k
Kubernetes で構築する PHP 開発環境 / php-development-environment-on-kubernetes
shin1x1
3
4.9k
独立したコアレイヤパターンの適用 - fortee 編 - / fortee-meets-independent-core-layer-pattern
shin1x1
0
3.6k
Other Decks in Programming
See All in Programming
Domain-Driven Transformation
hschwentner
2
1.9k
Formの複雑さに立ち向かう
bmthd
1
930
「個人開発マネタイズ大全」が教えてくれたこと
bani24884
1
200
PHPのバージョンアップ時にも役立ったAST
matsuo_atsushi
0
230
Rails 1.0 のコードで学ぶ find_by* と method_missing の仕組み / Learn how find_by_* and method_missing work in Rails 1.0 code
maimux2x
1
220
推しメソッドsource_locationのしくみを探る - はじめてRubyのコードを読んでみた
nobu09
2
290
AIの力でお手軽Chrome拡張機能作り
taiseiue
0
190
Boos Performance and Developer Productivity with Jakarta EE 11
ivargrimstad
0
320
color-scheme: light dark; を完全に理解する
uhyo
7
490
パスキーのすべて ── 導入・UX設計・実装の紹介 / 20250213 パスキー開発者の集い
kuralab
3
900
CDK開発におけるコーディング規約の運用
yamanashi_ren01
2
250
Honoとフロントエンドの 型安全性について
yodaka
7
1.5k
Featured
See All Featured
Building Adaptive Systems
keathley
40
2.4k
Raft: Consensus for Rubyists
vanstee
137
6.8k
For a Future-Friendly Web
brad_frost
176
9.6k
Building Applications with DynamoDB
mza
93
6.2k
How to Ace a Technical Interview
jacobian
276
23k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
114
50k
Java REST API Framework Comparison - PWX 2021
mraible
29
8.4k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
27
1.6k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
21
2.5k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
133
33k
Reflections from 52 weeks, 52 projects
jeffersonlam
348
20k
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