Q. What is the purpose of the 'docker-compose exec' command?
β
Correct Answer: (A)
To execute a command in a running service container
Explanation: The 'docker-compose exec' command runs a command in a running service container. For example, 'docker-compose exec web bash'.