A

Admin • 36.96K Points
Coach

Q. What does the 'docker exec -it container_name bash' command do?

  • (A) Starts a container in interactive mode
  • (B) Executes a bash shell inside a running container
  • (C) Executes a command in the background
  • (D) Creates a new Docker container
  • Correct Answer - Option(B)
  • Views: 15
  • Filed under category Docker

Explanation by: Admin
'docker exec -it container_name bash' opens an interactive bash shell inside a running container.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics