laradock / workspace

Laradock Base Image.
http://laradock.io/
MIT License
112 stars 87 forks source link

`workspace` cannot be run as `linux/arm64` architecture on Apple M1 #47

Closed gilbok closed 3 years ago

gilbok commented 3 years ago

workspace cannot be run as linux/arm64 architecture on Apple M1. But php-fpm can be run as linux/arm64 architecture.

$ docker pull laradock/workspace:latest-7.2

$ docker pull laradock/php-fpm:latest-7.2

$ docker images
REPOSITORY           TAG               IMAGE ID       CREATED        SIZE
laradock/php-fpm     latest-7.2        94e355067b69   2 days ago     410MB
laradock/workspace   latest-7.2        5b0a8a579a35   2 days ago     803MB

$ docker run -it 5b0a8a579a35 uname -m # laradock/workspace:latest-7.2
x86_64

$ docker run -it 94e355067b69 uname -m # laradock/php-fpm:latest-7.2
aarch64

I think it is because laradock/workspace is using phusion/baseimage:0.11 as base image. And it supports only linux/amd64

FROM phusion/baseimage:0.11

Its recent tags are supporting multi-arch including linux/arm64 now. So the base image needs to be changed to the one which supports linux/arm64

Screen Shot 2021-05-17 at 20 19 01
bestlong commented 3 years ago

base image will adjusted.