title: "secret create" description: "The secret create command description and usage"
Usage: docker secret create [NAME]
Create a secret using stdin as content
Creates a secret using standard input for the secret content. You must run this command on a manager node.
$ cat ssh-dev | docker secret create ssh-dev
mhv17xfe3gh6xc4rij5orpfds
$ docker secret ls
ID NAME CREATED UPDATED SIZE
mhv17xfe3gh6xc4rij5orpfds ssh-dev 2016-10-27 23:25:43.909181089 +0000 UTC 2016-10-27 23:25:43.909181089 +0000 UTC 1679