how to create docker secrets code example Example: create docker secrets bash script $ echo "This is a secret" | docker secret create my_secret_data -