Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
482 views
in Technique[技术] by (71.8m points)

I can't access exposed docker container from LAN

I've one container which is worked fine for 3 months. At the moment I can't access container from network. It's accessible on host which is docker run on. Access port is 8083.

yml

version: '3'
services:
  registry:
    image: docker.bintray.io/jfrog/artifactory-oss:latest
    restart: always
    ports:
      - "8081:8081"
      - "8083:8082"
~                  



[root@gitlab ~]# docker ps
CONTAINER ID        IMAGE                                            COMMAND                  CREATED             STATUS              PORTS                                            NAMES
863891ea6e3c        docker.bintray.io/jfrog/artifactory-oss:latest   "/entrypoint-artifac…"   3 months ago        Up About an hour    0.0.0.0:8081->8081/tcp, 0.0.0.0:8083->8082/tcp   root_registry_1_7d69431cd9ce

[root@gitlab ~]# netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 127.0.0.1:9121          0.0.0.0:*               LISTEN      1844/redis_exporter 
tcp        0      0 127.0.0.1:9090          0.0.0.0:*               LISTEN      1850/prometheus     
tcp        0      0 127.0.0.1:9187          0.0.0.0:*               LISTEN      1886/postgres_expor 
tcp        0      0 127.0.0.1:9093          0.0.0.0:*               LISTEN      1887/alertmanager   
tcp        0      0 127.0.0.1:5000          0.0.0.0:*               LISTEN      1866/registry       
tcp        0      0 127.0.0.1:9100          0.0.0.0:*               LISTEN      1890/node_exporter  
tcp        0      0 127.0.0.1:9229          0.0.0.0:*               LISTEN      1859/gitlab-workhor 
tcp        0      0 0.0.0.0:5005            0.0.0.0:*               LISTEN      1837/nginx: master  
tcp        0      0 127.0.0.1:8080          0.0.0.0:*               LISTEN      1857/puma 4.3.3.git 
tcp        0      0 127.0.0.1:9168          0.0.0.0:*               LISTEN      1864/puma 4.3.3.git 
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      1837/nginx: master  
tcp        0      0 127.0.0.1:8082          0.0.0.0:*               LISTEN      2754/sidekiq 5.2.7  
tcp        0      0 127.0.0.1:9236          0.0.0.0:*               LISTEN      2111/gitaly         
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      953/sshd            
tcp        0      0 127.0.0.1:3000          0.0.0.0:*               LISTEN      1885/grafana-server 
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      1142/master         
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      1837/nginx: master  
tcp        0      0 0.0.0.0:8060            0.0.0.0:*               LISTEN      1837/nginx: master  
tcp6       0      0 :::9094                 :::*                    LISTEN      1887/alertmanager   
tcp6       0      0 ::1:9168                :::*                    LISTEN      1864/puma 4.3.3.git 
tcp6       0      0 :::8081                 :::*                    LISTEN      1627/docker-proxy   
tcp6       0      0 :::8083                 :::*                    LISTEN      1613/docker-proxy   
tcp6       0      0 :::22                   :::*                    LISTEN      953/sshd            
tcp6       0      0 ::1:25                  :::*                    LISTEN      1142/master         
udp6       0      0 :::9094                 :::*                                1887/alertmanager   

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...