Building x86 Docker Images on an M1 Mac

2021-12-04 15:04 (3 years ago) ytyng

If docker build fails after switching to an M1 Mac.

docker build --platform linux/amd64 . -t ${image_name}:${image_tag} ...
--platform linux/amd64

should be added

Current rating: 2.6
The author runs the application development company Cyberneura.
We look forward to discussing your development needs.

Comments

Archive

2025
2024
2023
2022
2021
2020
2019
2018
2017
2016
2015
2014
2013
2012
2011