Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Docker イメージのマルチアーキテクチャビルド / docker-muti-arch-b...
Search
shin1x1
December 21, 2021
Programming
580
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
680
抽象化という思考のツール - 開発現場での活用 - / Abstraction-as-a-Tool-for-Thinking-in-dev
shin1x1
0
160
抽象化という思考のツール - 理解と活用 - / Abstraction-as-a-Tool-for-Thinking
shin1x1
1
1.5k
php-fpm がリクエスト処理する仕組みを追う / Tracing-How-php-fpm-Handles-Requests
shin1x1
6
4.2k
PHP ユーザのための OpenTelemetry 入門 / phpcon2024-opentelemetry
shin1x1
3
2.5k
PHPコードの実行モデルを理解する / Understanding-the-PHP-Execution-Model
shin1x1
2
3.4k
制約の力 - 状態を限定する -
shin1x1
6
5.9k
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
340
Other Decks in Programming
See All in Programming
Streamlitで実現する自然言語データアプリ開発
ayumu_yamaguchi
1
290
新卒PdEのリアル
ryu1013
1
500
Jetpack Compose メカニズム
skydoves
0
440
Family mrubyの進捗
kishima
1
130
Snowflakeで業務アプリを作ろう。 Snowflakeのアプリ機能解説&実践ガイド
ayumu_yamaguchi
1
280
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
180
C#の現在地 進化の歴史と、AI時代の.NET Everywhere
neuecc
4
2.7k
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
200
GraphRAGのKnowledge Graphを 直接!見る/View-GraphRAG's-KnowledgeGraph-directly!
tyumugi1113
1
340
GKE で Pod の見方を変えたら、スケールアウト時の挙動を真に捉えられた話
stkk
0
130
仕様駆動開発による爆速プロダクト開発 / Bakusoku Spec Driven Development
kobakei
0
120
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
170
Featured
See All Featured
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
430
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
50
10k
The agentic SEO stack - context over prompts
schlessera
0
940
Chasing Engaging Ingredients in Design
codingconduct
0
320
エンジニアに許された特別な時間の終わり
watany
109
250k
Believing is Seeing
oripsolob
1
220
30 Presentation Tips
portentint
PRO
1
400
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.4k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
74
42k
Information Architects: The Missing Link in Design Systems
soysaucechin
1
1.2k
Building AI with AI
inesmontani
PRO
1
1.2k
It's Worth the Effort
3n
188
29k
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