fast-data-dev icon indicating copy to clipboard operation
fast-data-dev copied to clipboard

The docker image doesn't work with theApple M1 chip

Open Chaklader opened this issue 3 years ago • 11 comments

When I try to run the docker image in the Apple M1 chip computer, it always shows that port 2181 is blocked. I had to modify the Dockerfile to solve the issue temporarily, but, please, provide an official solution for the problem.

Chaklader avatar Dec 05 '21 05:12 Chaklader

I think Docker have Docker for M1 chip (apple chip). You can find Docker version for Apple Chip as below

  • Release notes: https://docs.docker.com/desktop/mac/release-notes/
  • Docker for Apple Chip: https://docs.docker.com/desktop/mac/apple-silicon/ Once Docker for Apple chip installed, it works well for any images which you want to run. If this helps you @Chaklader

luongnv-se avatar Jan 06 '22 15:01 luongnv-se

When I try to run the docker image in the Apple M1 chip computer, it always shows that port 2181 is blocked. I had to modify the Dockerfile to solve the issue temporarily, but, please, provide an official solution for the problem.

Please tell me how did you get away with it, I'm having the same issue.

senwangJC avatar Jan 13 '22 03:01 senwangJC

I think Docker have Docker for M1 chip (apple chip). You can find Docker version for Apple Chip as below

  • Release notes: https://docs.docker.com/desktop/mac/release-notes/
  • Docker for Apple Chip: https://docs.docker.com/desktop/mac/apple-silicon/ Once Docker for Apple chip installed, it works well for any images which you want to run. If this helps you @Chaklader

I installed the apple silicon version for it, it does no help.

runtime.systemstack_switch() /usr/lib/go/src/runtime/asm_amd64.s:252 fp=0xc42002a768 sp=0xc42002a760

I think the golang there is just not happy.

senwangJC avatar Jan 13 '22 03:01 senwangJC

Yes, I also use Docker for the Apple silicon and it's not working.

On Thu, Jan 13, 2022 at 9:32 AM senwangJC @.***> wrote:

I think Docker have Docker for M1 chip (apple chip). You can find Docker version for Apple Chip as below

  • Release notes: https://docs.docker.com/desktop/mac/release-notes/
  • Docker for Apple Chip: https://docs.docker.com/desktop/mac/apple-silicon/ Once Docker for Apple chip installed, it works well for any images which you want to run. If this helps you @Chaklader https://github.com/Chaklader

I installed the apple silicon version for it, it does no help.

runtime.systemstack_switch() /usr/lib/go/src/runtime/asm_amd64.s:252 fp=0xc42002a768 sp=0xc42002a760

I think the gaoling there is just not happy.

— Reply to this email directly, view it on GitHub https://github.com/lensesio/fast-data-dev/issues/182#issuecomment-1011754589, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKMC6PERCFHKQRRB7LBTO3UVZBWLANCNFSM5JMMG3HA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

Chaklader avatar Jan 13 '22 04:01 Chaklader

I was looking for a solution, and after trying a few things was able to come up with an alternative. It is a docker-compose made up of differente services and it also provides a GUI to manage your cluster. It worked on M1.

Check it out here: https://github.com/FilipeNavas/kafka-local

FilipeNavas avatar Jan 21 '22 03:01 FilipeNavas

I can confirm the docker-compose file is working and can be up within a few minutes in the M1 machine. Currently, I don't work in any Kafka project, so, can't say more but the UI looks clean.

On Fri, Jan 21, 2022 at 9:22 AM Filipe Navas @.***> wrote:

I was looking for a solution, and after trying a few things was able to come up with an alternative. It is a docker-compose made up of differente services and it also provides a GUI to manage your cluster. It worked on M1.

Check it out here: https://github.com/FilipeNavas/kafka-local

— Reply to this email directly, view it on GitHub https://github.com/lensesio/fast-data-dev/issues/182#issuecomment-1018131875, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKMC6JJIZLAMIZMSTNO24LUXDGPXANCNFSM5JMMG3HA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

Chaklader avatar Jan 21 '22 05:01 Chaklader

    image: landoop/fast-data-dev:latest
    restart: unless-stopped
    container_name: kafka
    ports:
      - '3030:3030'
      - '8081-8083:8081-8083'
      - '9581-9585:9581-9585'
      - '9092:9092'
    environment:
      ADV_HOST: '127.0.0.1'```

getting error on docker-compose  up (M1 chip):

Broker config found at '/var/run/broker/server.properties'. We won't process variables.
kafka  | Connect worker config found at '/var/run/connect/connect-avro-distributed.properties'. We won't process variables.
kafka  | Schema registry config found at '/var/run/schema-registry/schema-registry.properties'. We won't process variables.
kafka  | REST Proxy config found at '/var/run/rest-proxy/kafka-rest.properties'. We won't process variables.
kafka  | Zookeeper config found at '/var/run/zookeeper/zookeeper.properties'. We won't process variables.
kafka  | runtime: failed to create new OS thread (have 2 already; errno=22)
kafka  | fatal error: newosproc
kafka  | 
kafka  | runtime stack:
kafka  | runtime.throw(0x512269, 0x9)
kafka  | 	/usr/lib/go/src/runtime/panic.go:566 +0x95
kafka  | runtime.newosproc(0xc420030000, 0xc42003ffc0)
kafka  | 	/usr/lib/go/src/runtime/os_linux.go:160 +0x194
kafka  | runtime.newm(0x5203a0, 0x0)
kafka  | 	/usr/lib/go/src/runtime/proc.go:1572 +0x132
kafka  | runtime.main.func1()
kafka  | 	/usr/lib/go/src/runtime/proc.go:126 +0x36
kafka  | runtime.systemstack(0x593600)
kafka  | 	/usr/lib/go/src/runtime/asm_amd64.s:298 +0x79
kafka  | runtime.mstart()
kafka  | 	/usr/lib/go/src/runtime/proc.go:1079
kafka  | 

vikrampunchh avatar Feb 07 '22 14:02 vikrampunchh

Hello, Did anyone find a solution to this? Thanks

okazwini avatar Feb 24 '22 08:02 okazwini

@okazwini here is the solution.

vikrampunchh avatar Feb 24 '22 08:02 vikrampunchh

Expanding on the previous comment, my https://github.com/lensesio/fast-data-dev/pull/185 PR makes a multi-arch image. Try

docker pull dougdonohoe/fast-data-dev

dougdonohoe avatar Nov 27 '22 05:11 dougdonohoe

Hey There,

i wonder if this PR is merged already

best regards

Tjerk-Haaye-Henricus avatar Jun 26 '23 09:06 Tjerk-Haaye-Henricus