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?