5

Start docker swarm : docker swarm init --advertise-addr MANAGER-IP

Join docker swarm: docker swarm join --token MANAGER-IP:2377

I am using Windows 10, it is working fine with Windows container mode, but gives below error in Linux container mode.

Error:

Error response from daemon: remote CA does not match fingerprint. Expected: 91030413f17ec7c023a2a796ee05a024915080ca8dfd646a597c7e966f667df6

Docker swarm manager command: docker node ls

ID                            HOSTNAME            STATUS              AVAILABILITY        MANAGER STATUS
2zf1l2o7sl2a1qka55s2vi77x *   moby                Ready               Active              Leader

Host name is moby, when running in Windows container mode it gives machine host correctly.

2 Answers 2

3

If you configured and joined correctly you should see two hosts: one for Linux and one for Windows.

Windows hosts cannot natively run inside the Linux hosts and vice-versa. This means you have to have different kernels for Linux hosts and Windows hosts in the same swarm. This way they can communicate across the same Docker network.

Refer to Docker Engine on Windows for more info.

0
1

your token is wrong.

you can get worker token in the manager node:

docker swarm join-token -q worker

it works for me.

https://docs.docker.com/engine/reference/commandline/swarm_join/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.