亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

docker容器映射端口不成功
PHPz
PHPz 2017-04-24 09:12:50
0
4
717

我的Dockerfile里暴露的缺失是3000端口,運(yùn)行下面指令:

docker run -P -d --name myexpress alpha/express

查看結(jié)果如下:

可我嘗試訪問:localhost:32768,沒有結(jié)果。
但是我登進(jìn)虛擬機(jī),curl端口3000是有結(jié)果的。

所以目前我的情況是:容器內(nèi)的應(yīng)用(Express)跑起來了,可外部訪問不到,我覺得是端口映射出問題了。
各路大神,給我出出主意吧。

PHPz
PHPz

學(xué)習(xí)是最好的投資!

reply all(4)
小葫蘆

If you want to look at it this way on a mac, there is a container management software called kitematic,

伊謝爾倫

It seems there is a problem with the service binding address. Binding 127.0.0.1 may not receive requests from external IPs.

大家講道理

127.0.0.1 is a loopback address, which can only be accessed locally and cannot be accessed externally. So your express needs to monitor the address 0.0.0.0

黃舟

-p IP address: host port: IP address: container port/protocol

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template