8

I am setting up Kafka in my local machine using docker-compose.

My machine details are:

macOsBigSur
Version - 11.2.3 (20D91)
Chip - Apple M1
RAM - 8 GB

Docker images are:

confluentinc/cp-zookeeper:5.5.0
confluentinc/cp-kafka:5.5.0
rabbitmq:3-management
confluentinc/cp-kafka-connect:5.5.0

Docker containers are not coming up due to qemu: uncaught target signal 11 (Segmentation fault) - core dumped error.

Could you please help me how to resolve this error?

shivakumar sajjan
  • 447
  • 2
  • 5
  • 11

5 Answers5

5

Maybe you need to wait for docker-for-mac to use the version of qemu that supports the m1 chip.

Ref:

rook1e
  • 59
  • 2
5

For people using alpine. Try updating the qemu package. It worked for me.

RUN apk add --update qemu-x86_64

Should work for other OS as well.

Philip
  • 6,827
  • 13
  • 75
  • 104
  • adding this to my Dockerfile had not effect. Did you need to do anything else? (aside from rebuilding of course) – S.. Nov 23 '22 at 07:53
5

I had the same issue using M1 chip with MacOS Monterey 12.5.

After upgrading to MacOS Ventura 13.3 and selecting

Use Rosetta for x86/amd64 emulation on Apple Silicon

in Docker Desktop -> Settings -> Features in development, the error disappeared and everything worked fine.

Use Rosetta for x86/amd64 emulation on Apple Silicon checkbox

Note that this option is not available on MacOS versions lower than Ventura 13, so upgrade is required. Source: https://github.com/docker/for-mac/issues/6788

Marin Milina
  • 51
  • 1
  • 2
2

I ran into the same error qemu: uncaught target signal 11 (Segmentation fault) - core dumped error. when using the docker image java:8(DEPRECATED).

But I could avoid that error by replacing docker image into openjdk:18.

So you may be able to avoid that error by replacing the base image you use.

By the way, I am also using Chip - Apple M1. But not using Kafka.

siruku6
  • 339
  • 3
  • 7
0

It worked for me after upgrading Docker Desktop to 4.11.1 (84025). I am using M1 Chip with MacOS Monterey 12.4

biniam
  • 8,099
  • 9
  • 49
  • 58