A

Admin • 833.24K Points
Coach

Q. Which command is used to get the IP address of a running Docker container?

  • (A) docker container ip container_name
  • (B) docker inspect container_name | grep IP
  • (C) docker ip container_name
  • (D) docker network inspect container_name
  • Correct Answer - Option(B)
  • Views: 44
  • Filed under category Docker
  • Hashtags:

Explanation by: Admin

'docker inspect container_name | grep IP' will retrieve the IP address of a running container.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.