tomp:
ss -tlpn
in the host
root@Ubuntu-1804-bionic-64-minimal ~ # ss -tlpn
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 128 0.0.0.0:8080 0.0.0.0:* users:((“nginx”,pid=19226,fd=5),(“nginx”,pid=19225,fd=5),(“nginx”,pid=19223,fd=5),(“nginx”,pid=19222,fd=5),(“nginx”,pid=19221,fd=5),(“nginx”,pid=19220,fd=5),(“nginx”,pid=19219,fd=5),(“nginx”,pid=19218,fd=5),(“nginx”,pid=19217,fd=5))
LISTEN 0 32 10.95.194.1:53 0.0.0.0:* users:((“dnsmasq”,pid=2112,fd=9))
LISTEN 0 128 127.0.0.53%lo:53 0.0.0.0:* users:((“systemd-resolve”,pid=1801,fd=13))
LISTEN 0 128 0.0.0.0:25462 0.0.0.0:* users:((“nginx_rtmp”,pid=19216,fd=6),(“nginx_rtmp”,pid=19214,fd=6))
LISTEN 0 128 0.0.0.0:22 0.0.0.0:* users:((“sshd”,pid=1861,fd=3))
LISTEN 0 128 0.0.0.0:31210 0.0.0.0:* users:((“nginx_rtmp”,pid=19216,fd=7),(“nginx_rtmp”,pid=19214,fd=7))
LISTEN 0 128 *:8015 : users:((“lxd”,pid=4457,fd=6),(“lxd”,pid=4457,fd=4))
LISTEN 0 128 *:30031 : users:((“lxd”,pid=3261,fd=6),(“lxd”,pid=3261,fd=4))
LISTEN 0 128 *:12047 : users:((“lxd”,pid=1696,fd=6),(“lxd”,pid=1696,fd=4))
LISTEN 0 128 *:12015 : users:((“lxd”,pid=880,fd=6),(“lxd”,pid=880,fd=4))
LISTEN 0 128 *:8016 : users:((“lxd”,pid=4481,fd=6),(“lxd”,pid=4481,fd=4))
LISTEN 0 128 *:80 : users:((“lxd”,pid=4107,fd=6),(“lxd”,pid=4107,fd=4))
LISTEN 0 128 *:30032 : users:((“lxd”,pid=3288,fd=6),(“lxd”,pid=3288,fd=4))
LISTEN 0 128 *:30000 : users:((“lxd”,pid=2475,fd=6),(“lxd”,pid=2475,fd=4))
LISTEN 0 128 *:12048 : users:((“lxd”,pid=1722,fd=6),(“lxd”,pid=1722,fd=4))
LISTEN 0 128 *:12016 : users:((“lxd”,pid=893,fd=6),(“lxd”,pid=893,fd=4))
LISTEN 0 128 *:8017 : users:((“lxd”,pid=4496,fd=6),(“lxd”,pid=4496,fd=4))
LISTEN 0 128 *:55569 : users:((“lxd”,pid=4061,fd=6),(“lxd”,pid=4061,fd=4))
LISTEN 0 128 *:30033 : users:((“lxd”,pid=3314,fd=6),(“lxd”,pid=3314,fd=4))
LISTEN 0 128 *:30001 : users:((“lxd”,pid=2494,fd=6),(“lxd”,pid=2494,fd=4))
LISTEN 0 128 *:1777 : users:((“lxd”,pid=2313,fd=6),(“lxd”,pid=2313,fd=4))
LISTEN 0 128 *:12049 : users:((“lxd”,pid=1752,fd=6),(“lxd”,pid=1752,fd=4))
LISTEN 0 128 *:12017 : users:((“lxd”,pid=915,fd=6),(“lxd”,pid=915,fd=4))
LISTEN 0 128 *:8018 : users:((“lxd”,pid=4523,fd=6),(“lxd”,pid=4523,fd=4))
LISTEN 0 128 *:50002 : users:((“lxd”,pid=3929,fd=6),(“lxd”,pid=3929,fd=4))
LISTEN 0 128 *:30034 : users:((“lxd”,pid=3340,fd=6),(“lxd”,pid=3340,fd=4))
in the container
ss -tlpn
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 128 *:12056 : users:((“memoexcha”,2177,76))
LISTEN 0 128 *:12024 : users:((“memoexcha”,2177,45))
LISTEN 0 128 *:30040 : users:((“memosameh”,2174,66))
LISTEN 0 128 *:30008 : users:((“memosameh”,2174,33))
LISTEN 0 128 *:8024 : users:((“memovips”,2179,50))
LISTEN 0 128 *:12057 : users:((“memoexcha”,2177,77))
LISTEN 0 128 *:12025 : users:((“memoexcha”,2177,46))
LISTEN 0 128 *:30041 : users:((“memosameh”,2174,67))
LISTEN 0 128 *:30009 : users:((“memosameh”,2174,34))
LISTEN 0 128 *:8025 : users:((“memovips”,2179,51))
LISTEN 0 128 *:12058 : users:((“memoexcha”,2177,78))
LISTEN 0 128 *:12026 : users:((“memoexcha”,2177,47))
LISTEN 0 128 *:30042 : users:((“memosameh”,2174,68))
LISTEN 0 128 *:30010 : users:((“memosameh”,2174,35))
LISTEN 0 128 *:8026 : users:((“memovips”,2179,52))
LISTEN 0 128 *:12059 : users:((“memoexcha”,2177,79))
LISTEN 0 128 *:12027 : users:((“memoexcha”,2177,48))
LISTEN 0 128 *:30043 : users:((“memosameh”,2174,69))
LISTEN 0 128 *:30011 : users:((“memosameh”,2174,36))
LISTEN 0 128 *:8027 : users:((“memovips”,2179,53))
LISTEN 0 128 *:12060 : users:((“memoexcha”,2177,80))
LISTEN 0 128 *:12028 : users:((“memoexcha”,2177,49))
LISTEN 0 128 *:30044 : users:((“memosameh”,2174,70))
LISTEN 0 128 *:30012 : users:((“memosameh”,2174,37))
LISTEN 0 128 *:8028 : users:((“memovips”,2179,54))
LISTEN 0 128 *:15901 : users:((“memoexcha”,2177,93))
LISTEN 0 128 *:12061 : users:((“memoexcha”,2177,81))
LISTEN 0 128 *:12029 : users:((“memoexcha”,2177,50))
LISTEN 0 128 *:30045 : users:((“memosameh”,2174,71))
LISTEN 0 128 *:30013 : users:((“memosameh”,2174,38))
LISTEN 0 128 *:8029 : users:((“memovips”,2179,55))
LISTEN 0 128 *:12062 : users:((“memoexcha”,2177,82))
LISTEN 0 128 *:30046 : users:((“memosameh”,2174,72))
LISTEN 0 128 *:30014 : users:((“memosameh”,2174,39))
LISTEN 0 128 *:12063 : users:((“memoexcha”,2177,83))
LISTEN 0 128 *:12031 : users:((“memoexcha”,2177,51))
LISTEN 0 128 *:30047 : users:((“memosameh”,2174,73))
LISTEN 0 128 *:30015 : users:((“memosameh”,2174,40))
LISTEN 0 128 *:12000 : users:((“memoexcha”,2177,91))
LISTEN 0 128 *:12064 : users:((“memoexcha”,2177,84))
LISTEN 0 128 *:12032 : users:((“memoexcha”,2177,52))
LISTEN 0 128 *:30048 : users:((“memosameh”,2174,74))
LISTEN 0 128 *:30016 : users:((“memosameh”,2174,41))
LISTEN 0 128 *:8000 : users:((“memovips”,2179,25))
LISTEN 0 128 *:7777 : users:((“memoexcha”,2177,90))
LISTEN 0 128 *:12065 : users:((“memoexcha”,2177,85))
LISTEN 0 128 *:12033 : users:((“memoexcha”,2177,53))
LISTEN 0 128 *:30049 : users:((“memosameh”,2174,65))
LISTEN 0 128 *:30017 : users:((“memosameh”,2174,42))
LISTEN 0 128 *:8001 : users:((“memovips”,2179,27))
LISTEN 0 128 *:12066 : users:((“memoexcha”,2177,86))
LISTEN 0 128 *:12034 : users:((“memoexcha”,2177,54))
LISTEN 0 128 *:30050 : users:((“memosameh”,2174,76))
LISTEN 0 128 *:30018 : users:((“memosameh”,2174,43))
LISTEN 0 128 *:8002 : users:((“memovips”,2179,28))
LISTEN 0 128 *:12067 : users:((“memoexcha”,2177,87))
LISTEN 0 128 *:12035 : users:((“memoexcha”,2177,55))
LISTEN 0 128 *:12003 : users:((“memoexcha”,2177,24))
LISTEN 0 128 *:30051 : users:((“memosameh”,2174,77))
LISTEN 0 128 *:30019 :