πŸ“Š Docker
Q. How do you create a Docker secret from a file?
Code:
echo 'mypassword' > secret.txt
docker secret create db_pass secret.txt
  • (A) docker secret add db_pass secret.txt
  • (B) docker secret create db_pass secret.txt
  • (C) docker secret insert db_pass secret.txt
  • (D) docker secret make db_pass secret.txt
πŸ’¬ Discuss
βœ… Correct Answer: (B) docker secret create db_pass secret.txt

Explanation: The `docker secret create` command is used to add secrets to the swarm.

Explanation by: Mr. Dubey
The `docker secret create` command is used to add secrets to the swarm.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
40
Total Visits
πŸ“½οΈ
6 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
86%
Success Rate