Complete the command to create a Docker secret named 'db_password' from a file.
docker secret [1] db_password ./password.txtThe docker secret create command is used to create a new secret in Docker Swarm.
Complete the Docker service command to use the secret 'db_password'.
docker service create --name mydb --secret [1] postgresThe secret name must match the one created earlier, which is 'db_password'.
Fix the error in the command to remove a Docker secret named 'db_password'.
docker secret [1] db_passwordThe correct command to delete a Docker secret is docker secret rm.
Fill both blanks to create a Docker secret from a string.
echo '[1]' | docker secret create [2] -
We echo the secret string 'mysecretvalue' and create a secret named 'db_password'.
Fill all three blanks to create a Docker service that uses two secrets and sets an environment variable.
docker service create --name app --secret [1] --secret [2] -e DB_PASS=[3] nginx
The service uses secrets 'db_password' and 'api_key'. The environment variable DB_PASS is set to 'db_password_value'.