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.

0 votes

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 in Docker by akhtar
• 28,160 points
615 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 by MD
• 65,240 points

Related Questions In Docker

0 votes
1 answer
0 votes
1 answer

swarm manager does not connect to nodes docker daemons on AWS

You first need to ssh into the ...READ MORE

answered Aug 24, 2018 in Docker by Nilesh
• 6,980 points
460 views
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 57,700 points
841 views
0 votes
1 answer