Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to try OpenWhisk with Docker on Apple Silicon #361

Open
ccaspanello opened this issue Sep 16, 2023 · 2 comments
Open

Unable to try OpenWhisk with Docker on Apple Silicon #361

ccaspanello opened this issue Sep 16, 2023 · 2 comments

Comments

@ccaspanello
Copy link

Running make quick-start is not successful. I get this error:

What's Next?
  View summary of image vulnerabilities and recommendations → docker scout quickview openwhisk/invoker:nightly
host ip address: 192.168.0.33
checking required ports ... 
 ... OK
  ... preparing api-gateway configuration
pinging minio...
[+] Running 4/1
 ✔ minio 3 layers [⣿⣿⣿]      0B/0B      Pulled 2.0s  
[+] Running 3/2
 ✔ Network openwhisk_default                                                                                                                            Created0.0s 
 ✔ Container openwhisk-minio-1                                                                                                                          Created0.3s 
 ! minio The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested 0.0s 
 ... OK
[+] Running 13/13
 ✔ apigateway 12 layers [⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿]      0B/0B      Pulled                                                                                   8.3s 
   ✔ 31603596830f Pull complete                                                                                                                 0.5s 
   ✔ db77ccbebb32 Pull complete                                                                                                                 5.9s 
   ✔ 9925d2011fc0 Pull complete                                                                                                                 6.2s 
   ✔ 3e38ccb4659a Pull complete                                                                                                                 6.2s 
   ✔ 1b4c273b3f1a Pull complete                                                                                                                 6.2s 
   ✔ f3f5ff8ca1e9 Pull complete                                                                                                                 6.2s 
   ✔ 97f8e1c69937 Pull complete                                                                                                                 6.9s 
   ✔ 1427c7ca9748 Pull complete                                                                                                                 6.9s 
   ✔ ae1eba106d09 Pull complete                                                                                                                 7.3s 
   ✔ acbd0f5add83 Pull complete                                                                                                                 7.3s 
   ✔ 135e08487c1b Pull complete                                                                                                                 7.4s 
   ✔ 78d0d3f8b202 Pull complete                                                                                                                 7.4s 
generating server certificate request
generating self-signed password-less server certificate
Signature ok
subject=/C=US/ST=NY/L=Yorktown/O=OpenWhisk/CN=192.168.0.33
Getting Private key
generate keystore
Waiting till all containers are powered up... 
[+] Running 5/6
 ✘ redis Error           1.0s s 
 ✘ kafka-topics-ui Error 1.0s s 
 ✘ kafka Error           1.0s s 
 ⠏ zookeeper Pulling     1.0s s 
 ✘ kafka-rest Error      1.0s s 
 ✘ db Error              1.0s s 
no matching manifest for linux/arm64/v8 in the manifest list entries
\nIMAGE                                      STATUS
minio/minio:RELEASE.2018-07-13T00-09-07Z   Up About a minute (healthy)
\nERROR: Timed out waiting for docker services to launch...
make: *** [wait-for-docker-compose-up] Error 1

I have seen this before with other containers when running on Apple Silicon.
See: https://stackoverflow.com/a/65592942
I think something similar needs to be done.

@style95
Copy link
Member

style95 commented Sep 18, 2023

The devtools are a bit outdated and I don't think it would work on Apple silicon.
Even the core OW needs some ugly tweak to build it on Apple silicon.
apache/openwhisk#5196 (comment)

@wz88
Copy link

wz88 commented Jun 27, 2024

@ccaspanello try setting the default platform for docker, it worked for me

export DOCKER_DEFAULT_PLATFORM=linux/amd64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants