# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e24a2a074778 nodejs "npm start" 23 seconds ago Up 5 seconds 17117/tcp, 0.0.0.0:80->44343/tcp p_nodejs_1
ce06e2af802e redis "docker-entrypoint..." 23 seconds ago Up 5 seconds 6379/tcp p_redis_1
ba979de7e7e2 c "/bin/sh -c ./src/..." 23 seconds ago Up 5 seconds 0.0.0.0:19833->19833/tcp p_c_1
# nmap 0.0.0.0 -p 19833
Starting Nmap 6.40 ( http://nmap.org ) at 2017-11-06 17:12 MSK
Nmap scan report for 0.0.0.0
Host is up (680s latency).
PORT STATE SERVICE
19833/tcp open unknown
Nmap done: 1 IP address (1 host up) scanned in 0.06 seconds
# docker exec -it p_nodejs_1 bash
# nmap c -p 19833
Starting Nmap 7.01 ( https://nmap.org ) at 2017-11-06 14:15 UTC
Nmap scan report for c (172.18.0.3)
Host is up (0.000046s latency).
rDNS record for 172.18.0.3: pool_c_1.pool_default
PORT STATE SERVICE
19833/tcp closed unknown
MAC Address: 02:42:AC:12:00:03 (Unknown)
Nmap done: 1 IP address (1 host up) scanned in 0.48 seconds