Error response from daemon This node is not a swarm manager Use docker swarm init or docker swarm join to connect this node to swarm and try again

–1 vote

Hi Guys,

I am trying to create a secret in docker. But it is showing me the below error.

$ echo "This is a secret" | docker secret create my_secret
Error response from daemon: This node is not a swarm manager. Use "docker swarm init" or "docker swarm join" to connect this node to swarm and try again.

How can I solve this error?

Aug 17, 2020 in Docker by akhtar
• 38,260 points
23,238 views

1 answer to this question.

0 votes

Hi@akhtar,

The secret very much depends on swarm mode and can effectively be considered to be a swarm mode component. You should first check your swarm cluster using the below command.

$ docker swarm init
answered Aug 17, 2020 by MD
• 95,460 points
0 votes
docker swarm init --advertise-addr  192.168.99.1
answered Jun 3, 2022 by anonymous

edited Mar 5

Related Questions In Docker

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer