Hello Docker Community
My computer is an Ubuntu laptop v18.04.
After running a Node.js server on port 8008 successfully, then shutting it down.
I am attempting to run a Go module on Docker with the following commend.
docker run -v ~/Documents/go-docker:/app -p 8008:8008 go-docker-image
2019/11/19 21:00:40 Running build command!
2019/11/19 21:00:40 Build ok.
2019/11/19 21:00:40 Restarting the given command.
2019/11/19 21:00:40 stdout: Server listening!
Reloding http://localhost:8008/ gives me:
This site can’t be reachedThe connection was reset.
Try:
Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_RESET
When running the command: sudo lsof -i -P -n | grep LISTEN I get:
systemd-r 1224 systemd-resolve 13u IPv4 34009 0t0 TCP 127.0.0.53:53 (LISTEN)
rpcbind 1226 root 8u IPv4 34824 0t0 TCP *:111 (LISTEN)
rpcbind 1226 root 11u IPv6 34827 0t0 TCP *:111 (LISTEN)
rpc.mount 1535 root 9u IPv4 32706 0t0 TCP *:39683 (LISTEN)
rpc.mount 1535 root 11u IPv6 32710 0t0 TCP *:50491 (LISTEN)
rpc.mount 1535 root 13u IPv4 32714 0t0 TCP *:43715 (LISTEN)
rpc.mount 1535 root 15u IPv6 32718 0t0 TCP *:39541 (LISTEN)
rpc.mount 1535 root 17u IPv4 32722 0t0 TCP *:47383 (LISTEN)
rpc.mount 1535 root 19u IPv6 32726 0t0 TCP *:59711 (LISTEN)
nginx 1560 root 6u IPv4 39535 0t0 TCP *:80 (LISTEN)
nginx 1560 root 7u IPv6 39536 0t0 TCP *:80 (LISTEN)
nginx 1562 www-data 6u IPv4 39535 0t0 TCP *:80 (LISTEN)
nginx 1562 www-data 7u IPv6 39536 0t0 TCP *:80 (LISTEN)
nginx 1564 www-data 6u IPv4 39535 0t0 TCP *:80 (LISTEN)
nginx 1564 www-data 7u IPv6 39536 0t0 TCP *:80 (LISTEN)
nginx 1566 www-data 6u IPv4 39535 0t0 TCP *:80 (LISTEN)
nginx 1566 www-data 7u IPv6 39536 0t0 TCP *:80 (LISTEN)
nginx 1568 www-data 6u IPv4 39535 0t0 TCP *:80 (LISTEN)
nginx 1568 www-data 7u IPv6 39536 0t0 TCP *:80 (LISTEN)
nginx 1569 www-data 6u IPv4 39535 0t0 TCP *:80 (LISTEN)
nginx 1569 www-data 7u IPv6 39536 0t0 TCP *:80 (LISTEN)
nginx 1570 www-data 6u IPv4 39535 0t0 TCP *:80 (LISTEN)
nginx 1570 www-data 7u IPv6 39536 0t0 TCP *:80 (LISTEN)
nginx 1571 www-data 6u IPv4 39535 0t0 TCP *:80 (LISTEN)
nginx 1571 www-data 7u IPv6 39536 0t0 TCP *:80 (LISTEN)
nginx 1573 www-data 6u IPv4 39535 0t0 TCP *:80 (LISTEN)
nginx 1573 www-data 7u IPv6 39536 0t0 TCP *:80 (LISTEN)
mysqld 1732 mysql 21u IPv4 42095 0t0 TCP 127.0.0.1:3306 (LISTEN)
tor 1738 debian-tor 6u IPv4 41236 0t0 TCP 127.0.0.1:9050 (LISTEN)
docker-pr 11661 root 4u IPv6 534299 0t0 TCP *:9005 (LISTEN)
node 15784 peter 20u IPv6 1818288 0t0 TCP *:9009 (LISTEN)
docker-pr 16075 root 4u IPv6 1818388 0t0 TCP *:8008 (LISTEN)
docker-pr 19330 root 4u IPv6 576767 0t0 TCP *:9006 (LISTEN)
cupsd 20944 root 6u IPv6 1372236 0t0 TCP [::1]:631 (LISTEN)
cupsd 20944 root 7u IPv4 1372237 0t0 TCP 127.0.0.1:631 (LISTEN)
java 28857 peter 222u IPv4 1501290 0t0 TCP 127.0.0.1:6942 (LISTEN)
java 28857 peter 275u IPv4 1502301 0t0 TCP 127.0.0.1:63342 (LISTEN)
After running ss -tlpn I get:
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 128 127.0.0.53%lo:53 0.0.0.0:*
LISTEN 0 5 127.0.0.1:631 0.0.0.0:*
LISTEN 0 128 0.0.0.0:47383 0.0.0.0:*
LISTEN 0 128 127.0.0.1:9050 0.0.0.0:*
LISTEN 0 128 127.0.0.1:6942 0.0.0.0:* users:(("java",pid=28857,fd=222))
LISTEN 0 64 0.0.0.0:2049 0.0.0.0:*
LISTEN 0 128 0.0.0.0:43715 0.0.0.0:*
LISTEN 0 128 0.0.0.0:39683 0.0.0.0:*
LISTEN 0 64 0.0.0.0:36583 0.0.0.0:*
LISTEN 0 80 127.0.0.1:3306 0.0.0.0:*
LISTEN 0 128 127.0.0.1:63342 0.0.0.0:* users:(("java",pid=28857,fd=275))
LISTEN 0 128 0.0.0.0:111 0.0.0.0:*
LISTEN 0 128 0.0.0.0:80 0.0.0.0:*
LISTEN 0 128 [::]:39541 [::]:*
LISTEN 0 5 [::1]:631 [::]:*
LISTEN 0 128 [::]:50491 [::]:*
LISTEN 0 64 [::]:39359 [::]:*
LISTEN 0 128 [::]:59711 [::]:*
LISTEN 0 64 [::]:2049 [::]:*
LISTEN 0 128 *:8008 *:*
LISTEN 0 128 *:9005 *:*
LISTEN 0 128 *:9006 *:*
LISTEN 0 128 [::]:111 [::]:*
LISTEN 0 128 [::]:80 [::]:*
LISTEN 11 128 *:9009 *:* users:(("node",pid=15784,fd=20))
Anyone has any pointers to what I can try next?