A

Admin • 828.43K Points
Coach

Q. What is the purpose of the 'docker exec' command?

  • (A) To execute a command in a running container
  • (B) To start a new container
  • (C) To build a Docker image
  • (D) To stop a running container
  • Correct Answer - Option(A)
  • Views: 29
  • Filed under category Docker
  • Hashtags:

Explanation by: Admin
The 'docker exec' command is used to run a command inside a running container. For example, 'docker exec -it <container_id> bash'.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.