R

Ram Sharma • 193.86K 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: 37
  • Filed under category Docker

Explanation by: Ram Sharma
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.


Question analytics