πŸ“Š 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

πŸ‘οΈ
146
Total Visits
πŸ“½οΈ
12 mo ago
Published
πŸŽ–οΈ
Gopal Sharma
Publisher
πŸ“ˆ
89%
Success Rate