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
πŸ’¬ Discuss
βœ… Correct Answer: (B) docker inspect container_name | grep IP
Explanation: 'docker inspect container_name | grep IP' will retrieve the IP address of a running container.
Explanation by: Rakesh Kumar
'docker inspect container_name | grep IP' will retrieve the IP address of a running container.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
344
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Rakesh Kumar
Publisher
πŸ“ˆ
83%
Success Rate