Shivakumar Sajjan
Shivakumar Sajjan

Reputation: 587

qemu: uncaught target signal 11 (Segmentation fault) - core dumped in docker containers

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?

Upvotes: 16

Views: 44982

Answers (5)

Marin Milina
Marin Milina

Reputation: 389

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

enter image description here

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

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

Update December 2023

You can find the option in the General tab, as it is no longer in development for the latest versions of Docker Desktop.enter image description here

Upvotes: 28

biniam
biniam

Reputation: 8199

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

Upvotes: -1

Philip
Philip

Reputation: 7166

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.

Upvotes: 5

siruku6
siruku6

Reputation: 508

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.

Upvotes: 2

rook1e
rook1e

Reputation: 139

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

Ref:

Upvotes: 5

Related Questions