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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
shin1x1
December 21, 2021
Programming
590
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
770
抽象化という思考のツール - 開発現場での活用 - / Abstraction-as-a-Tool-for-Thinking-in-dev
shin1x1
0
170
抽象化という思考のツール - 理解と活用 - / Abstraction-as-a-Tool-for-Thinking
shin1x1
1
1.6k
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
370
Other Decks in Programming
See All in Programming
3回つくってわかった、 定期実行ジョブ基盤の本質情報
takai
4
3.7k
Spec-driven Development with AI
simas
PRO
0
2.3k
Event is what happens
moro
2
3.8k
느린 네트워크와 저사양 디바이스 사용자를 위한 웹뷰 로딩 시간 개선기
kmkim
1
210
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
600
Rails初心者がパスキーを実装してみて大変だったこと
ktombow
0
150
Getting Started with Vibe Coding
miccheng
0
190
Distance field of Julia set
kinakomoti321
0
300
Apple Intelligenceとオンデバイス時代の到来
yahir0
0
230
Railsのためのパスキー実践入門 〜マルチテナントSaaSでの意思決定〜
utakaha
4
3.4k
地方こそサーバーレス — 10年続けた、顔が見えるチームで確かな基盤を / Serverless Matters Most in Regional Areas — 10 Years of Building Reliable Foundations with Close-Knit Teams
seike460
PRO
1
220
社内AIエージェント「Askワンバン」における コストチューニングの取り組み
t0yohei
0
160
Featured
See All Featured
Building Better People: How to give real-time feedback that sticks.
wjessup
371
20k
The SEO identity crisis: Don't let AI make you average
varn
0
630
Measuring & Analyzing Core Web Vitals
bluesmoon
9
1.1k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
470
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
33
5.6k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.9k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.7k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
20k
Why You Should Never Use an ORM
jnunemaker
PRO
61
10k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
510
Google's AI Overviews - The New Search
badams
0
1.7k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
8.2k
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