I faced the same issue when starting the mysql container on amd64 architecture. fixed by adding
platform: linux/amd64
to the MySQL service in docker compose file, like so
mysql: image: ${BASE_PATH}/mysql:8.0-debian platform: linux/amd64