Our custom MySQL image Dockerfile might look like this: FROM -platform=linux/amd64 mysql:5.7ĬOPY docker-entrypoint-initdb.d /docker-entrypoint-initdb.d/ The Docker multi-CPU architecture support docs provide more background and info, but if you just want to get straight to the solution, continue reading below. This tool is already included in Docker Desktop for Windows, macOS, and some Docker Linux packages - can be installed by following the README otherwise. Nowadays Docker makes it easier than ever to build multi-architecture images with its Buildx Docker CLI plugin. What we want instead is a single image that leverages Docker’s multiple architectures support.īuild a Multi-CPU Architecture Image Background However, when using a custom Dockerfile image in a team setting, where you might have a mix of platforms, the above will not work out of the box. The official Docker Desktop for Apple silicon announcement provides some info on how to run an Intel image under emulation, similar to other Stack Overflow posts on the topic. As of the time of writing, the MySQL 5.7 Docker image is (in)famously not yet natively supported on the newer M1 MacBooks.
0 Comments
Leave a Reply. |