A

Admin • 833K Points
Coach

Q. What does the 'docker exec -it container_name /bin/sh' command do?

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

Explanation by: Admin

'docker exec -it container_name /bin/sh' opens an interactive shell inside the specified container.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.