Minha janela de encaixe está sendo executada em um servidor VmWare ESXi (servidor Ubuntu 16 x64). Eu instalei e iniciei o container do rancheiro usando este comando:
docker run -d --restart=unless-stopped -p 9000:9000 -P --name rancher rancher/server
Eu tentei conectar usando meu navegador ( link ) e ele não funciona. Eu também tentei usar o wget no servidor ( wget 127.0.0.1:9000
e wget 172.17.0.1:9000
)
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5dc3273e418c rancher/server "/usr/bin/entry /u..." 13 minutes ago Up 13 minutes 0.0.0.0:9000->9000/tcp, 0.0.0.0:32771->3306/tcp, 0.0.0.0:32770->8080/tcp rancher
Aqui está a configuração de rede ( docker inspect rancher
):
"NetworkSettings": {
"Bridge": "",
"SandboxID": "46d1f8a6a3cf10aea16befb8a3cda8ce15fe51e72996b29d0960fb33f274336d",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": {
"3306/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "32771"
}
],
"8080/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "32770"
}
],
"9000/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "9000"
}
]
},
Eu tenho um aplicativo django em execução na porta 8081. Não tem problema ... Aqui estão as minhas portas abertas:
$> lsof -i
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
postgres 1162 postgres 6u IPv4 16586 0t0 TCP *:postgresql (LISTEN)
postgres 1162 postgres 7u IPv6 16587 0t0 TCP *:postgresql (LISTEN)
postgres 1162 postgres 11u IPv6 14855 0t0 UDP localhost:54457->localhost:54457
postgres 1176 postgres 11u IPv6 14855 0t0 UDP localhost:54457->localhost:54457
postgres 1177 postgres 11u IPv6 14855 0t0 UDP localhost:54457->localhost:54457
postgres 1178 postgres 11u IPv6 14855 0t0 UDP localhost:54457->localhost:54457
postgres 1179 postgres 11u IPv6 14855 0t0 UDP localhost:54457->localhost:54457
postgres 1180 postgres 11u IPv6 14855 0t0 UDP localhost:54457->localhost:54457
sshd 1247 root 3u IPv4 15022 0t0 TCP *:ssh (LISTEN)
sshd 1247 root 4u IPv6 15024 0t0 TCP *:ssh (LISTEN)
python3.5 1872 usrwww 4u IPv4 19068 0t0 TCP 10.192.212.223:48346->10.192.212.223:postgresql (ESTABLISHED)
python3.5 1872 usrwww 5u IPv4 19072 0t0 TCP *:tproxy (LISTEN)
postgres 1885 postgres 11u IPv6 14855 0t0 UDP localhost:54457->localhost:54457
postgres 1885 postgres 12u IPv4 19069 0t0 TCP 10.192.212.223:postgresql->10.192.212.223:48346 (ESTABLISHED)
sshd 4536 root 3u IPv4 661043 0t0 TCP 10.192.212.223:ssh->10.192.212.113:53951 (ESTABLISHED)
sshd 4627 usrwww 3u IPv4 661043 0t0 TCP 10.192.212.223:ssh->10.192.212.113:53951 (ESTABLISHED)
nginx 28795 root 6u IPv4 508524 0t0 TCP *:http (LISTEN)
nginx 28795 root 7u IPv6 508525 0t0 TCP *:http (LISTEN)
nginx 28795 root 8u IPv4 508526 0t0 TCP *:8000 (LISTEN)
nginx 28795 root 9u IPv6 508527 0t0 TCP *:8000 (LISTEN)
nginx 28796 www-data 6u IPv4 508524 0t0 TCP *:http (LISTEN)
nginx 28796 www-data 7u IPv6 508525 0t0 TCP *:http (LISTEN)
nginx 28796 www-data 8u IPv4 508526 0t0 TCP *:8000 (LISTEN)
nginx 28796 www-data 9u IPv6 508527 0t0 TCP *:8000 (LISTEN)
nginx 28797 www-data 6u IPv4 508524 0t0 TCP *:http (LISTEN)
nginx 28797 www-data 7u IPv6 508525 0t0 TCP *:http (LISTEN)
nginx 28797 www-data 8u IPv4 508526 0t0 TCP *:8000 (LISTEN)
nginx 28797 www-data 9u IPv6 508527 0t0 TCP *:8000 (LISTEN)
nginx 28798 www-data 6u IPv4 508524 0t0 TCP *:http (LISTEN)
nginx 28798 www-data 7u IPv6 508525 0t0 TCP *:http (LISTEN)
nginx 28798 www-data 8u IPv4 508526 0t0 TCP *:8000 (LISTEN)
nginx 28798 www-data 9u IPv6 508527 0t0 TCP *:8000 (LISTEN)
nginx 28799 www-data 6u IPv4 508524 0t0 TCP *:http (LISTEN)
nginx 28799 www-data 7u IPv6 508525 0t0 TCP *:http (LISTEN)
nginx 28799 www-data 8u IPv4 508526 0t0 TCP *:8000 (LISTEN)
nginx 28799 www-data 9u IPv6 508527 0t0 TCP *:8000 (LISTEN)
docker-pr 30797 root 4u IPv6 525143 0t0 TCP *:9000 (LISTEN)
docker-pr 30836 root 4u IPv6 522635 0t0 TCP *:32770 (LISTEN)
docker-pr 30848 root 4u IPv6 525556 0t0 TCP *:32771 (LISTEN)
gogs 32225 gogs 3u IPv6 537639 0t0 TCP *:x11 (LISTEN)
Aqui estão iptables:
$> iptables -L -v -n
Chain INPUT (policy ACCEPT 178 packets, 14487 bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
55125 22M DOCKER-ISOLATION all -- * * 0.0.0.0/0 0.0.0.0/0
30661 19M DOCKER all -- * docker0 0.0.0.0/0 0.0.0.0/0
30373 19M ACCEPT all -- * docker0 0.0.0.0/0 0.0.0.0/0 ctstate RELATED,ESTABLISHED
24464 2744K ACCEPT all -- docker0 !docker0 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT all -- docker0 docker0 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT 87 packets, 11452 bytes)
pkts bytes target prot opt in out source destination
Chain DOCKER (1 references)
pkts bytes target prot opt in out source destination
176 9112 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.2 tcp dpt:9000
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.2 tcp dpt:8080
0 0 ACCEPT tcp -- !docker0 docker0 0.0.0.0/0 172.17.0.2 tcp dpt:3306
Chain DOCKER-ISOLATION (1 references)
pkts bytes target prot opt in out source destination
55125 22M RETURN all -- * * 0.0.0.0/0 0.0.0.0/0
Informações de rede do ESXi:
IPs da VM:
Relay (E / S de caminho direto) = sim
Eu também tenho o mesmo problema com outros containers.
Tags networking docker vmware-esxi