CodewCaro.
If you're running an M1 mac and using Docker Desktop you may run in to this error while running docker compose up.
My solution to this was to go in to Docker -> Settings -> General -> Use Rosetta for x86/amd64 emulation on Apple Silicon.
Note: You must have Virtualization framework enabled.