[root@localhost ~]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
405c18a78c94 registry.cn-hangzhou.aliyuncs.com/helowin/oracle_11g "/bin/sh -c '/home/o…" 39 hours ago Up 2 minutes 0.0.0.0:1521->1521/tcp oracle_11g
[root@localhost ~]# telnet 172.18.46.45 1521
Trying 172.18.46.45...
telnet: connect to address 172.18.46.45: Connection refused
[root@localhost ~]# telnet 172.18.46.45 1521
Trying 172.18.46.45...
telnet: connect to address 172.18.46.45: Connection refused
[root@localhost ~]# telnet 172.18.46.45 1521
Trying 172.18.46.45...
telnet: connect to address 172.18.46.45: Connection refused
[root@localhost ~]# telnet localhost 1521
Trying ::1...
Connected to localhost.
Escape character is '^]'.