English 中文(简体)
• 在IP处理随机变化时, do车 in锁——广告
原标题:docker swarm init --advertise-addr when IP address randomly changes
  • 时间:2022-03-05 16:21:59
  •  标签:
  • docker

我想尝试docker swarm

当我在的指挥下运行时,我收到错误信息:

could not choose an IP address to advertise since this system has multiple addresses on different interfaces (1.1.1.1 on enp89s0 and 2.2.2.2 on eno2) - specify on with the --advertise-addr

因此,我尝试了这一指挥系统:docker swarm init-advertise-addr eno2,但这造成了错误:

Error response from daemon: interface eno2 has more than one IPv6 address (1111:1111::1111:1111:1111:1111 and 2222::2222:2222:2222:2222)

我面临另一项挑战,即我的IPv6和IPv4有时会随意改变。 我倾向于在上操作docker swarm>,而没有提及任何具体的排他性地址的论点。 Can 我开始用网络接口名称和(或)我网络的其他固定财产名称来敲响?

任何人都知道,在改变封面时, do是否稳定?

问题回答

This is not possible due to:

Because manager nodes are meant to be a stable component of the infrastructure, you should use a fixed IP address for the advertise address to prevent the swarm from becoming unstable on machine reboot.

阅读这一文件:)上刊登广告

根据错误信息的产出,我删除了我网络界面上报告的地址之一,即:

ip addr del ip_address dev interface
For example to delete an extra ip_address reported:
ip addr del 2600:5555:1234:2468::A1A1/128 dev enp2s0

这个问题已经解决。 http://strong>ip Addr





相关问题
Unable to connect to docker container inside windows server

As title. I am developing a system with many docker images with ASP.Net MVC core projects. I am publishing these docker images into a docker engine installed on Windows Server OS, and I found that I ...

Only can see postgreSQL as an admin

After installed Wsl and Docker, can t access PSQL and other things. I was studying Docker, and installed the latest version. So far so good, I received an error about the WSL version, saw some ...

make docker-compose block until healthy without `depends_on`

I am working with a team that uses docker-compose to start a set of helper services, but does not use docker when the code is being developed. Here, docker-compose is just a convenient way to run the ...

change grafana port using docker host network

I am trying to spin up a grafana container in docker, however my setup in docker does not allow ipv4 forwarding and thus I cannot use the default bridge network in docker. All I can use is the host ...

Pip instalation for Python 3.11 in docker

I have Dockerfile to build image for Django project that uses Python 3.11 and runs in poetry environment (see content below). Problem is when I try to donwload get-pip.py file and run it using Python, ...

在 Dockerfile 中运行 composer install

我正在尝试将我的Laravel应用程序进行Docker化。 该应用程序已经构建并在Git中,但我将vendor文件夹添加到了.gitignore中。 我添加了一个Dockerfile,看起来像这样: FROM php:7.1-fpm-alpine RUN apk update ...