πŸ“Š Docker
Q. Which of the following commands is used to stop all running Docker containers?
  • (A) docker stop --all
  • (B) docker stop $(docker ps -q)
  • (C) docker kill --all
  • (D) docker terminate containers
πŸ’¬ Discuss
βœ… Correct Answer: (B) docker stop $(docker ps -q)

Explanation: 'docker stop $(docker ps -q)' stops all running Docker containers by passing their IDs.

Explanation by: Vikash Gupta
'docker stop $(docker ps -q)' stops all running Docker containers by passing their IDs.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
76
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Vikash Gupta
Publisher
πŸ“ˆ
99%
Success Rate