πŸ“Š Docker
Q. How can you set Docker Compose to automatically remove containers after they stop?
  • (A) Using 'remove: true' in the Compose file
  • (B) Using 'docker-compose rm -f'
  • (C) Using 'docker-compose down --remove'
  • (D) Using 'restart: always' in the Compose file
πŸ’¬ Discuss
βœ… Correct Answer: (B) Using 'docker-compose rm -f'

Explanation: The 'docker-compose rm -f' command removes containers after they stop.

Explanation by: Gopal Sharma
The 'docker-compose rm -f' command removes containers after they stop.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
159
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Gopal Sharma
Publisher
πŸ“ˆ
98%
Success Rate