简体   繁体   English

无法在 MacBook Pro M1 上的 Docker 中运行 DataStax-Studio

[英]Unable to run DataStax-Studio in Docker on MacBook Pro M1

I'm trying to install Cassandra and DataStax-studio to access the Cassandra on my MacBook Pro M1 inside docker.我正在尝试安装 Cassandra 和 DataStax-studio 以在 docker 内访问我的MacBook Pro M1上的 Cassandra。

I was able to pull a Cassandra image and run container.我能够提取 Cassandra 映像并运行容器。 But when I tried the studio I get this error.但是当我尝试工作室时,我收到了这个错误。 Seems the image is built only for intel architecture.似乎该图像仅适用于英特尔架构。 I wasn't able to find a specific image for ARM architecture.我无法找到 ARM 架构的特定图像。

Is there a way I can still run DataStax Studio inside Docker running on Apple Mac M1 ?有没有办法我仍然可以在运行在 Apple Mac M1 上的 Docker 中运行 DataStax Studio?

Below are some terminal output for more clarification.以下是一些终端输出,以供更多说明。

-MBP ~ % docker  image ls 
REPOSITORY            TAG       IMAGE ID       CREATED       SIZE
cassandra             latest    f6dfc8a5f3d8   7 days ago    393MB
datastax/dse-studio   latest    79b8a4b75312   7 weeks ago   787MB


-MBP ~ % docker container run -d 79b8a4b75312
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
ce8d20bd23445a20869371fb8e5c8cefbb16e9c968aa1f2870b6b578b6a81e88

-MBP ~ % docker container ls
CONTAINER ID   IMAGE          COMMAND                  CREATED          STATUS          PORTS                                         NAMES
112e980fe11c   f6dfc8a5f3d8   "docker-entrypoint.s…"   13 minutes ago   Up 13 minutes   7000-7001/tcp, 7199/tcp, 9042/tcp, 9160/tcp   hungry_bohr

Update This link doesn't provide much help https://docs.datastax.com/en/install/6.0/install/installDSEDocker.html更新此链接没有提供太多帮助https://docs.datastax.com/en/install/6.0/install/installDSEDocker.html

There's no ARM support for Studio. Studio 不支持 ARM。

There were some changes to the Cassandra builds that would allow installation on ARM machines but it's not officially supported yet so there's a chance that you'll run into some issues at some point. Cassandra 版本进行了一些更改,允许在 ARM 机器上安装,但尚未得到官方支持,因此您可能会在某些时候遇到一些问题。

I'm going to reach out to the Studio developers here at DataStax and will post an update here as appropriate.我将与 DataStax 的 Studio 开发人员联系,并将酌情在此处发布更新。 Cheers!干杯!

[UPDATE] - Can you try to override it by specifying --platform linux/amd64 with docker run ? [更新] - 您可以尝试通过使用--platform linux/amd64 docker run指定--platform linux/amd64来覆盖它吗?

PS Studio only works with DSE and Astra . PS Studio 仅适用于 DSE 和Astra It won't work with open-source Cassandra.它不适用于开源 Cassandra。 Cheers!干杯!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM