A

Admin • 802.91K 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: 8
  • Filed under category Docker
  • Hashtags:

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.

Be the first to start discuss.