Hello guys,
I’m trying to get the ports that was mapping for my containers, but it appears that this command only works for a new container (the last one created), and i’d to show my port mappings for my others containers.
This are my containers that are running:
[root@notebook log]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5bdc6e69e691 debian “/bin/bash” 15 minutes ago Up 15 minutes 80/tcp, 127.0.0.1:8001->444/tcp tadeu_port2
033086b44f99 debian “/bin/bash” 17 minutes ago Up 17 minutes 80/tcp, 0.0.0.0:8000->443/tcp tadeu_port
019fe2f214b6 debian “/bin/bash” 34 minutes ago Up 34 minutes 80/tcp tadeu_teste_commit
Example:
[root@notebook log]# docker port tadeu_port2
444/tcp -> 127.0.0.1:8001
OK, it shows me, but when i tried a container that was created in the past i got no output:
[root@notebook log]# docker port tadeu_teste_commit
[root@notebook log]#
Am i missing something? I’m new at Docker, so any help will be appreciate.
Thanks in advance!