-
Notifications
You must be signed in to change notification settings - Fork 444
Strapi docker images crashing on Apple Silicon (M1) #307
Comments
Transferred to the proper repo. |
Any updates on this?
@derrickmehaffy any update on this issue fixing? |
if you are using an m1 chip the current docker images won't work (not only strapi, also mysql, postgres, etc).. or in a most unstable way. The cross platform is supported by docker, but I guess it is still beta (have a look here: https://docs.docker.com/desktop/mac/apple-silicon/) |
This reports an actual bug, the images should be multi-arch, given that devs are starting to use arm laptops from Apple and this images from strapi are development images, they should work in linux/arm64/v8 too. |
Hi, if you are opened to transit from travis to github actions, it is very easy to use multiarch docker build. Some inspiration (it uses ghcr.io registry) can be taken from here for example: https://github.com/peon-dev/peon/blob/master/.github/workflows/docker.yml |
any news here? |
I have the same issue. Any workaround? |
Hi @vicpara the best way is to build your own image locally. You can get some inspiration here: https://github.com/JanMikes/celadna.cz/blob/main/strapi/Dockerfile |
We've created a custom image with the same structure, you can use it if you want (I am not updating it regularly, but if you ping me I can do it) see here: https://registry.hub.docker.com/r/dunadigital/strapi However, there is a new tool by Strapi, check it out: https://github.com/strapi-community/strapi-tool-dockerize |
Bug report
Describe the bug
The strapi/strapi docker image does not run on the Apple M1 chip running Big Sur.
Steps to reproduce the behavior
docker-compose.yml
docker-compose pull
mkdir app
mkdir data
docker-compose up -d
docker-compose logs -f strapi
And then 💩
Expected behavior
Should install and launch Strapi admin interface that is accessible at http://localhost:1337
System
As specified in the docker images and compose file provided by Strapi docs.
Additional context
Likely needs an ARM docker image. Someone tried to report something similar in April (strapi/strapi#10118)
The text was updated successfully, but these errors were encountered: