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
500
Docker イメージのマルチアーキテクチャビルド / docker-muti-arch-build
shin1x1
December 21, 2021
Tweet
Share
More Decks by shin1x1
See All by shin1x1
抽象化という思考のツール - 理解と活用 - / Abstraction-as-a-Tool-for-Thinking
shin1x1
1
980
php-fpm がリクエスト処理する仕組みを追う / Tracing-How-php-fpm-Handles-Requests
shin1x1
6
3.5k
PHP ユーザのための OpenTelemetry 入門 / phpcon2024-opentelemetry
shin1x1
3
2.1k
PHPコードの実行モデルを理解する / Understanding-the-PHP-Execution-Model
shin1x1
2
2.7k
制約の力 - 状態を限定する -
shin1x1
6
5.4k
Apple Silicon Mac 時代の PHP 開発環境構築 2021 / php-dev-env-on-m1-mac-era
shin1x1
2
4.8k
Domain modeling with PHP / domain-modeling-with-php-en
shin1x1
1
280
ドメインをモデリングしてPHPコードに落とし込む / domain-modeling-with-php8
shin1x1
15
7.3k
PHP 8 で作る JSON パーサ / php8-json-parser
shin1x1
2
3.9k
Other Decks in Programming
See All in Programming
新しいモバイルアプリ勉強会(仮)について
uetyo
1
260
kiroでゲームを作ってみた
iriikeita
0
160
ゲームの物理
fadis
5
1.1k
GitHub Copilotの全体像と活用のヒント AI駆動開発の最初の一歩
74th
7
2.8k
大規模FlutterプロジェクトのCI実行時間を約8割削減した話
teamlab
PRO
0
470
Flutter로 Gemini와 MCP를 활용한 Agentic App 만들기 - 박제창 2025 I/O Extended Seoul
itsmedreamwalker
0
140
Introduction to Git & GitHub
latte72
0
110
新世界の理解
koriym
0
130
可変性を制する設計: 構造と振る舞いから考える概念モデリングとその実装
a_suenami
10
1.7k
Portapad紹介プレゼンテーション
gotoumakakeru
1
130
なぜあなたのオブザーバビリティ導入は頓挫するのか
ryota_hnk
5
590
Understanding Ruby Grammar Through Conflicts
yui_knk
1
100
Featured
See All Featured
YesSQL, Process and Tooling at Scale
rocio
173
14k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
7
810
The Illustrated Children's Guide to Kubernetes
chrisshort
48
50k
How to Ace a Technical Interview
jacobian
278
23k
RailsConf 2023
tenderlove
30
1.2k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
Measuring & Analyzing Core Web Vitals
bluesmoon
8
550
Site-Speed That Sticks
csswizardry
10
770
Why Our Code Smells
bkeepers
PRO
338
57k
Become a Pro
speakerdeck
PRO
29
5.5k
Building Better People: How to give real-time feedback that sticks.
wjessup
367
19k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
18
1.1k
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