I have a docker-compose.yml
file:
version: '1'
services:
mariadb:
image: 'docker.io/bitnami/mariadb:10.3-debian-10'
ports:
- '3307:3306'
volumes:
- ./db:/bitnami/mariadb
environment:
- MARIADB_USER=bn_wordpress
- MARIADB_DATABASE=bitnami_wordpress
- ALLOW_EMPTY_PASSWORD=yes
wordpress:
image: 'docker.io/bitnami/wordpress:5-debian-10'
ports:
- '8081:8080'
- '8444:8443'
volumes:
- ./wp:/bitnami/wordpress
depends_on:
- mariadb
environment:
- MARIADB_HOST=mariadb
- MARIADB_PORT_NUMBER=3306
- WORDPRESS_DATABASE_USER=bn_wordpress
- WORDPRESS_DATABASE_NAME=bitnami_wordpress
- ALLOW_EMPTY_PASSWORD=yes
In Mac (Intel) and Linux, I run docker-compose up
and it works perfectly.
But in Macbook M1, I installed Docker for Apple Silicon chip and updated rosetta, it prompts this at the end:
wordpress_1 | wordpress 15:48:36.49 INFO ==> ** Starting Apache **
wordpress_1 | [Tue Jul 13 15:48:36.652803 2021] [core:emerg] [pid 1] (95)Operation not supported: AH00023: Couldn't create the mpm-accept mutex
wordpress_1 | (95)Operation not supported: could not create accept mutex
wordpress_1 | AH00015: Unable to open logs
How can I overcome the issue? Appreciate your help!
Docker image was built in only seven minutes on MacBook M1 Pro, which was even better than the build time on my new VPS. This is not surprising, I gave Docker quite a lot of resources. But it also shows that if there are not too many I/O disk operations, performance is quite good.
Docker Desktop for Mac on Apple silicon is now available as a GA release. This enables you to develop applications with your choice of local development environments, and extends development pipelines for ARM-based applications.
Although the M1 version docker desktop allows users to run x86 docker images under emulation, it will be a more efficient solution to offer your software as a “universal” Multi-Arch docker image that can serve both your ARM (M1) and x86 users.
To run the Docker Desktop, simply double-click the Docker app in the Application folder. To confirm that the Docker Desktop is running, you should be seeing the Docker icon on the Menu Bar and it says Docker Desktop is running… You will also see the below Docker Desktop app window.
Although Apple has released Rosetta 2 to help move applications over to the new M1 chips, this does not get us all the way with Docker Desktop. Under the hood of Docker Desktop, we run a virtual machine, to achieve this on Apple’s new hardware we need to move onto Apple’s new hypervisor framework.
We saw the first spotlight of these efforts at Apple WWDC in June, when Apple highlighted Docker Desktop on stage. Our goal at Docker is to provide the same great experience on the new Macs as we do today for our millions of users on Docker Desktop for Mac, and to make this transition as seamless as possible.
This version of Docker Desktop requires an Intel processor. To learn more about this issue see: Show activity on this post. See the download link at the top. This is a link to DMG file.
We recommend running arm64 containers on Apple Silicon machines whenever possible, and encouraging container authors to produce arm64, or multi-arch, versions of their containers. We expect this issue to become less common over time, as more and more images are rebuilt supporting multiple architectures.
A bit late but have you tried adding platform: linux/amd64
? Under both mariadb
and wordpress
Running docker compose
with platform: linux/amd64
(i.e. running under QEMU) didn't fix this problem for me. Instead (in addition), I had to add:
Mutex posixsem
... to httpd.conf
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With