A

Admin • 828.43K Points
Coach

Q. Which of the following is a valid syntax to create a secret from a file?

  • (A) docker secret create my_secret < file.txt
  • (B) docker secret create file.txt my_secret
  • (C) docker secret add my_secret file.txt
  • (D) docker secret --add my_secret file.txt

Explanation by: Admin
The `<` operator is used to provide the contents of the file as input when creating a secret.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.