Q. Which of the following options is used to pass environment variables to a Docker container?

  • (A) -e
  • (B) --env
  • (C) --env-file
  • (D) All of the above
πŸ’¬ Discuss
βœ… Correct Answer: (D) All of the above
Explanation: Docker allows passing environment variables to containers using '-e', '--env', or '--env-file'.
Explanation by: Shiva Ram
Docker allows passing environment variables to containers using '-e', '--env', or '--env-file'.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
136
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Shiva Ram
Publisher
πŸ“ˆ
84%
Success Rate