119
社区成员




使用容器服务过程中,如果没有公网 IP,无法通过外部访问容器内部服务,例如: SSH 登录容器,访问容器内 web UI 页面。
具体方案: 内网穿透
推荐使用:
花生壳等服务,提供免费额度内网穿透服务,
开发云容器服务,可免费领取容器会员
wget https://dl-cdn.oray.com/hsk/linux/phddns-5.0.0.x86_64.rpm
yum localinstall phddns-5.0.0.x86_64.rpm
root@node1 ~]# phddns version
/usr/bin/phddns: line 4: pidof: command not found
Oray PeanutHull DDNS 5.0.0
[root@node1 ~]# phddns reset
/usr/bin/phddns: line 4: pidof: command not found
Sure you want to reset it?(y/n)
y
reset success !
[root@node1 ~]# phddns restart
/usr/bin/phddns: line 4: pidof: command not found
restart phtunnel service success !
浏览器访问http://b.oray.com/ ,输入花生壳Linux 5.0在安装时产生SN码与默认登录密码admin登录,后面使用微信扫描,如果没有账号就注册一个。
下面以22端口服务为例:
至此,可登录至云容器,进行操作。也可以根据以上操作,将容器内部部署的相关服务,进行外网穿透,访问云容器内部服务,例如 hadoop web UI。
只能通过内网穿透的方法访问云容器吗?