Search code examples
dockerdocker-composeredisapple-m1

Up docker container with redis 2.8 on macOS M1


Is it possible run docker container with redis:2.8 on macOS with M1? docker log

Setup:

  • macOS M1
  • docker-compose.yml with redis 2.8
version: '2'

services:
  redis:
    image: redis:2.8
    ports:
      - "6379:6379"

In another way through

docker-compose up redis

I got this error


Solution

  • If you google the error you are getting at runtime ...

    failed to create new OS thread (have 2 already; errno=22)
    

    you will see a hit on another StackOverflow question Failed to create new OS thread (have 2 already; errno=22). That looks to provide the answer - the platform of your M1 Mac is not compatible with that specific image you are using so you need to find an image that will work on your M1 Mac.