docker:来自守护进程的错误响应:未找到网络 cassandra

发布于 2025-01-17 05:44:05 字数 511 浏览 2 评论 0原文

我正在遵循官方网站上给出的指南(https://cassandra.apache.org/_ /quickstart.html)我对 docker 没有太多经验,所以我需要帮助,我该怎么做才能完成这项工作。

首先我运行

docker run --name cassandra cassandra

第二个

docker run --rm -d --name cassandra_host --hostname cassandra_host --network cassandra cassandra

并收到以下错误

docker: Error response from daemon: network Cassandra not found.

I am following the guide given on the official website(https://cassandra.apache.org/_/quickstart.html) I don't have much experience with docker so I need help, what can I do to make this work.

first I run this

docker run --name cassandra cassandra

2nd

docker run --rm -d --name cassandra_host --hostname cassandra_host --network cassandra cassandra

and I get the below error

docker: Error response from daemon: network Cassandra not found.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

燕归巢 2025-01-24 05:44:05

对此我们深感抱歉。这是我们文档中的一个错误,我们很快就会对网站进行更新以修复此问题 ( CASSANDRA-17485)。

同时,创建 Docker 网络的命令是:

$ docker network create cassandra

然后您应该能够启动容器:

docker run --rm -d 
  --name cassandra 
  --hostname cassandra 
  --network cassandra 
  cassandra

干杯!

We're sorry about this. This is an error in our docs and we have a scheduled update to the site soon to fix this (CASSANDRA-17485).

In the meantime, the command to create a Docker network is:

$ docker network create cassandra

Then you should be able to start the container with:

docker run --rm -d 
  --name cassandra 
  --hostname cassandra 
  --network cassandra 
  cassandra

Cheers!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文