New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Docker DCA Exam - Topic 6 Question 92 Discussion

Actual exam question for Docker's DCA exam
Question #: 92
Topic #: 6
[All DCA Questions]

Can this set of commands identify the published port(s) for a container?

Solution: `docker network inspect', `docker port'

Show Suggested Answer Hide Answer
Suggested Answer: A

Yes, the docker port command can be used to identify the published ports for a running container. It shows the mapping between the host ports and the container's exposed ports. The docker network inspect command can also provide information about the network settings of the container, including port mappings. However, it's important to note that docker network inspect requires the network's name or ID as an argument, not the container's. Therefore, to get the network details of a specific container, you would first need to identify the network the container is connected to. These commands, when used appropriately, can help you identify the published ports for a container.


Contribute your Thoughts:

0/2000 characters
Dahlia
3 months ago
Wait, can it really do that? I thought it was just for networks.
upvoted 0 times
...
Irving
3 months ago
Definitely works, I've used it before!
upvoted 0 times
...
Angella
3 months ago
Not sure about `docker network inspect` for this.
upvoted 0 times
...
Mitsue
4 months ago
I think `docker port` is the right one for that.
upvoted 0 times
...
Lindsey
4 months ago
Yes, those commands can show published ports.
upvoted 0 times
...
Bernadine
4 months ago
I believe the answer is yes, but I can't recall if both commands are necessary or if just one will do the job.
upvoted 0 times
...
Lenna
4 months ago
I’m a bit confused. I thought `docker network inspect` was more about network settings than published ports.
upvoted 0 times
...
Mattie
4 months ago
I remember practicing a question where we had to identify container ports, and I feel like both commands might be relevant.
upvoted 0 times
...
Rodolfo
5 months ago
I think `docker port` can show the published ports, but I'm not sure about `docker network inspect`.
upvoted 0 times
...
Wilda
5 months ago
I've got this. The solution looks straightforward, and I've used those commands before. I'll apply them carefully and I'm sure I can get the right answer.
upvoted 0 times
...
Georgeanna
5 months ago
Wait, what? I'm a bit confused about how to approach this. I'll need to review my notes and make sure I understand the right steps.
upvoted 0 times
...
Josephine
5 months ago
Hmm, I'm not too sure about this. I'll have to double-check the documentation to make sure I'm using the right commands.
upvoted 0 times
...
Xenia
5 months ago
I think I can handle this one. The `docker network inspect` and `docker port` commands should give me the information I need to identify the published ports for a container.
upvoted 0 times
...
Ettie
5 months ago
Easy peasy! The solution provided looks spot on. I'm confident I can use those commands to find the published ports.
upvoted 0 times
...
Charolette
5 months ago
I'm pretty confident that the correct answer is C. Avoiding going down to operational levels of detail seems like a key principle when defining value streams.
upvoted 0 times
...
Thersa
5 months ago
Easy peasy! The bond is trading at a yield above the coupon rate, so the clean price will be below par. I'll go with option B.
upvoted 0 times
...
Georgiann
5 months ago
Hmm, I'm a bit confused about the different options here. I'll need to review the details on KMS keys and snapshot sharing.
upvoted 0 times
...
Geraldine
5 months ago
I remember practicing a question about tabs, and I think it was the Massing & Site tab. But it could also be the Insert tab!
upvoted 0 times
...
Zona
2 years ago
Haha, I bet the person who wrote this question has been waiting to trick us with that `docker network inspect` option. Nice try, but I'm not falling for it!
upvoted 0 times
Chauncey
2 years ago
B) No
upvoted 0 times
...
Farrah
2 years ago
A) Yes
upvoted 0 times
...
...
Geoffrey
2 years ago
I'm not sure, but I'll go with option A) Yes based on Xenia and Tonette's rationale.
upvoted 0 times
...
Tonette
2 years ago
I agree with Xenia, those commands should be able to identify the published ports.
upvoted 0 times
...
Xenia
2 years ago
Yes, I think the commands 'docker network inspect' and 'docker port' can do that.
upvoted 0 times
...
Lucy
2 years ago
Can this set of commands identify the published port(s) for a container?
upvoted 0 times
...
Derrick
2 years ago
This is a classic case of 'read the question carefully'. The answer is right there in front of us - `docker port` is the way to go. No need to overthink it.
upvoted 0 times
...
Stephen
2 years ago
Wait, `docker network inspect`? I thought that was for checking the network configuration, not container ports. Good to know I was missing that one.
upvoted 0 times
Olen
1 year ago
I was surprised too, but `docker network inspect` is definitely useful for checking container ports.
upvoted 0 times
...
Geraldine
1 year ago
No, `docker network inspect` is not just for network configuration, it can also show container ports.
upvoted 0 times
...
Tayna
1 year ago
Yes, `docker network inspect` can help identify the published ports for a container.
upvoted 0 times
...
Han
2 years ago
I didn't know that either! Thanks for sharing, now I know how to check container ports.
upvoted 0 times
...
Kristel
2 years ago
No, `docker network inspect` is not just for checking network configuration, it can also show container ports.
upvoted 0 times
...
Simona
2 years ago
Yes, `docker network inspect` can also be used to identify the published ports for a container.
upvoted 0 times
...
...
Natalie
2 years ago
The `docker port` command is definitely the way to go here. I can't believe I didn't think of that sooner!
upvoted 0 times
Donette
2 years ago
B) No
upvoted 0 times
...
Sharan
2 years ago
The `docker port` command is definitely the way to go here. I can't believe I didn't think of that sooner!
upvoted 0 times
...
Nickie
2 years ago
A) Yes
upvoted 0 times
...
...

Save Cancel