So I expect you've found this post by looking for the Error.
ERROR [internal] load metadata for docker.io/library/mysql:5.6
failed to solve with frontend dockerfile.v0: failed to create LLB definition: no match for platform in manifest sha256:
And then you've caught site of 'Mac OS M1' chip and thought 'Oh yeah I've got a Mac with this type of chip.
So here's the thing; at the time of writing Docker does not fully support the M1 chip.
You may want to make you have the right version of Docker For Apple Silicon M1 Chip
I managed to fix the issue above though with the following . My code for the MySql container was
mysql:
# image: mysql:5.6
build:
context: ./
dockerfile: ./Dockerfile-mysql
volumes:
- mysql-data:/var/lib/mysql:rw
and I changed this to
mysql:
image: mysql:5.6
platform: linux/x86_64
build:
context: ./
dockerfile: ./Dockerfile-mysql
volumes:
- mysql-data:/var/lib/mysql:rw
No comments:
Post a Comment