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,230 points
20,716 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,440 points

Related Questions In Docker

0 votes
1 answer
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
• 7,050 points
1,448 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
• 58,090 points
2,477 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP