docker:telnet 本机IP地址 端口号 Connection refused

[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 '^]'.

猜你喜欢

转载自blog.csdn.net/shunzi2016/article/details/107274595
今日推荐