2017-03-14 118 views
1
OS: Centos 7 
Docker version 17.03.0-ce, build 60ccb22 
docker-compose version 1.11.2, build dfed245 

我需要地圖RED5Pro服務器大範圍的端口(40000-60000/UDP),但在創建映像時,我總是得到這個錯誤:搬運工端口映射錯誤

ERROR: for red5pro UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)
ERROR: An HTTP request took too long to complete. Retry with --verbose to obtain debug information.
If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 60).

這裏是撰寫文件

version: '2' 
services: 
    red5pro: 
    build: ./red5pro/ 
    container_name: red5pro 
    ports: 
     - "5080:5080" 
     - "1935:1935" 
     - "8554:8554" 
     - "6262:6262" 
     - "8081:8081" 
     - "40000-60000:40000-60000/udp" 

Dockerfile

FROM java:8 
ENV DEBIAN_FRONTEND noninteractive 
RUN apt-get update && apt-get install -y \ 
    libva1 \ 
    libva-drm1 \ 
    libva-x11-1 \ 
    libvdpau1  
WORKDIR /opt/red5pro <br>COPY//opt/red5pro/ 
ENTRYPOINT ["sh","/opt/red5pro/red5.sh"] 
+0

我想你已經嘗試過碰撞超時? 「export COMPOSE_HTTP_TIMEOUT = 120」撰寫作者似乎認爲這些錯誤與服務器相關。受限的服務器,太慢,太負載,太忙,太。 – user2105103

+0

是的,我沒有運氣增加到COMPOSE_HTTP_TIMEOUT = 600,仍然收到相同的錯誤 –

回答

0

在Mac上,我所做的就是要去泊塢窗圖標(右上角),並點擊重啓,也許不是最好的解決辦法,但it's最快的國家之一