Py学习  »  docker

拒绝访问Gitlab Docker容器输出连接

Aria Groult • 5 年前 • 1693 次点击  

我有一个Docker容器为Gitlab CE映像运行此配置:

version: "3"
services:
  gitlab:
   hostname: gitlab.mydomain.com
   image: gitlab/gitlab-ce:latest
   container_name: gitlab
   restart: always
   ports:
     - 3000:80
   volumes:
     - /opt/gitlab/config:/etc/gitlab
     - /opt/gitlab/logs:/var/log/gitlab
     - /opt/gitlab/data:/var/opt/gitlab
networks:
  default:
    external:
      name: custom_network

运行Docker PS时,我看到我的容器启动并运行,其中80个容器端口按预期映射到3000主机端口。

运行时: wget -O- https://172.25.0.2:3000 我收到以下错误消息: Connecting to 172.25.0.2:3000... failed: Connection refused.

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/39840
 
1693 次点击  
文章 [ 1 ]  |  最新文章 5 年前