2017-04-22 1 views
0

내 개발 환경은 eclipse docker perspective에서 VMware Workstation 11 및 manageiq docker 컨테이너 (manageiq/manageiq : euwe-2)의 CentOS 7입니다. 관리 응용 프로그램 (https://127.0.0.1:8443)이 잘 실행됩니다. 그러나 매끄러운 연결은 실패합니다. 아래는 내가 hawkular 호스트 이름 만 연결도 실패한의 IP 주소를 입력 manageiq 웹 콘솔에서 내 hawkular 실행 명령Manageiq가 CentOS 7의 Hawkular에 액세스하지 못합니다. VMWare

<HAWKULAR_HOME>./standalone.sh -Dhawkular.rest.user=jhwang –Dhawkular.rest.password=password -Dhawkular.agent.enabled=true -b 192.168.200.51 

입니다. 여기 manageiq의 이미지입니다 : VM웨어 워크 스테이션의

enter image description here

외부는, 위의 과정이 잘 작동합니다. ManageIQ는 Hawkular 바인딩 IP 주소로 Hawkular와 연결합니다. 그러나 VM웨어에서는 액세스 할 수 없습니다. 잘못된 Hawkular 바인딩 주소를 사용하고 있습니다. 나는 ifconfig 명령의 출력을 첨부합니다.

$ ifconfig 
docker0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 
     inet 172.17.0.1 netmask 255.255.0.0 broadcast 0.0.0.0 
     inet6 fe80::42:8fff:fe28:6f2d prefixlen 64 scopeid 0x20<link> 
     ether 02:42:8f:28:6f:2d txqueuelen 0 (Ethernet) 
     RX packets 1283 bytes 342465 (334.4 KiB) 
     RX errors 0 dropped 0 overruns 0 frame 0 
     TX packets 1344 bytes 157135 (153.4 KiB) 
     TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 

ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 
     inet 192.168.200.51 netmask 255.255.255.0 broadcast 192.168.200.255 
     inet6 fe80::c494:6514:b641:e046 prefixlen 64 scopeid 0x20<link> 
     ether 00:0c:29:57:00:09 txqueuelen 1000 (Ethernet) 
     RX packets 10875 bytes 7648436 (7.2 MiB) 
     RX errors 0 dropped 0 overruns 0 frame 0 
     TX packets 7465 bytes 1019458 (995.5 KiB) 
     TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 
     inet 127.0.0.1 netmask 255.0.0.0 
     inet6 ::1 prefixlen 128 scopeid 0x10<host> 
     loop txqueuelen 1 (Local Loopback) 
     RX packets 48647 bytes 14786880 (14.1 MiB) 
     RX errors 0 dropped 0 overruns 0 frame 0 
     TX packets 48647 bytes 14786880 (14.1 MiB) 
     TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 

vethcf88378: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 
     inet6 fe80::c000:d9ff:fe82:e915 prefixlen 64 scopeid 0x20<link> 
     ether c2:00:d9:82:e9:15 txqueuelen 0 (Ethernet) 
     RX packets 1283 bytes 360427 (351.9 KiB) 
     RX errors 0 dropped 0 overruns 0 frame 0 
     TX packets 1352 bytes 157783 (154.0 KiB) 
     TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 

virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 
     inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255 
     ether 52:54:00:ce:2f:27 txqueuelen 1000 (Ethernet) 
     RX packets 0 bytes 0 (0.0 B) 
     RX errors 0 dropped 0 overruns 0 frame 0 
     TX packets 0 bytes 0 (0.0 B) 
     TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 

는 그리고이이 단선 "iptables that was blocking the loopback port"로 인해 로그

[Sun Apr 23 01:08:01.546217 2017] [proxy_http:error] [pid 862] [client 172.17.0.1:58384] AH01114: HTTP: failed to make connection to backend: 0.0.0.0, referer: https://127.0.0.1:8443/ 
[Sun Apr 23 01:08:01.546274 2017] [proxy:error] [pid 862] (111)Connection refused: AH00957: HTTP: attempt to connect to 0.0.0.0:3008 (0.0.0.0) failed 
[Sun Apr 23 01:08:01.546280 2017] [proxy:error] [pid 862] AH00959: ap_proxy_connect_backend disabling worker for (0.0.0.0) for 60s 
[Sun Apr 23 01:08:01.546281 2017] [proxy_http:error] [pid 862] [client 172.17.0.1:58384] AH01114: HTTP: failed to make connection to backend: 0.0.0.0, referer: https://127.0.0.1:8443/ 
[Sun Apr 23 01:08:01.546346 2017] [proxy:error] [pid 862] (111)Connection refused: AH00957: HTTP: attempt to connect to 0.0.0.0:3009 (0.0.0.0) failed 
[Sun Apr 23 01:08:01.546352 2017] [proxy:error] [pid 862] AH00959: ap_proxy_connect_backend disabling worker for (0.0.0.0) for 60s 
[Sun Apr 23 01:08:01.546353 2017] [proxy_http:error] [pid 862] [client 172.17.0.1:58384] AH01114: HTTP: failed to make connection to backend: 0.0.0.0, referer: https://127.0.0.1:8443/ 
[Sun Apr 23 01:08:17.874238 2017] [proxy:error] [pid 864] (111)Connection refused: AH00957: WS: attempt to connect to 0.0.0.0:5001 (0.0.0.0) failed 
[Sun Apr 23 01:08:17.875769 2017] [proxy:error] [pid 864] AH00959: ap_proxy_connect_backend disabling worker for (0.0.0.0) for 60s 
[Sun Apr 23 01:08:17.876936 2017] [proxy_wstunnel:error] [pid 864] [client 172.17.0.1:58492] AH02452: failed to make connection to backend: 0.0.0.0 
[Sun Apr 23 01:08:17.877157 2017] [proxy:error] [pid 864] (111)Connection refused: AH00957: WS: attempt to connect to 0.0.0.0:5002 (0.0.0.0) failed 
[Sun Apr 23 01:08:17.877170 2017] [proxy:error] [pid 864] AH00959: ap_proxy_connect_backend disabling worker for (0.0.0.0) for 60s 
[Sun Apr 23 01:08:17.877173 2017] [proxy_wstunnel:error] [pid 864] [client 172.17.0.1:58492] AH02452: failed to make connection to backend: 0.0.0.0 
[Sun Apr 23 01:08:17.877542 2017] [proxy:error] [pid 864] (111)Connection refused: AH00957: WS: attempt to connect to 0.0.0.0:5003 (0.0.0.0) failed 
[Sun Apr 23 01:08:17.877552 2017] [proxy:error] [pid 864] AH00959: ap_proxy_connect_backend disabling worker for (0.0.0.0) for 60s 
[Sun Apr 23 01:08:17.877554 2017] [proxy_wstunnel:error] [pid 864] [client 172.17.0.1:58492] AH02452: failed to make connection to backend: 0.0.0.0 
[Sun Apr 23 01:08:17.877717 2017] [proxy:error] [pid 864] (111)Connection refused: AH00957: WS: attempt to connect to 0.0.0.0:5004 (0.0.0.0) failed 
[Sun Apr 23 01:08:17.877724 2017] [proxy:error] [pid 864] AH00959: ap_proxy_connect_backend disabling worker for (0.0.0.0) for 60s 
[Sun Apr 23 01:08:17.877726 2017] [proxy_wstunnel:error] [pid 864] [client 172.17.0.1:58492] AH02452: failed to make connection to backend: 0.0.0.0 
[Sun Apr 23 01:08:17.877799 2017] [proxy:error] [pid 864] (111)Connection refused: AH00957: WS: attempt to connect to 0.0.0.0:5005 (0.0.0.0) failed 

답변

0

있습니다. 한 명령 줄에서 내 문제가 해결되었습니다.

iptables -I INPUT 1 -i docker0 -j ACCEPT 
+0

docker0 (172.17.0.1/16)의 ip 주소를 centos 7 ip33 (192.168.200.51/24)의 ip 주소로 변경하면 인터넷이 종료됩니다. VM웨어 워크 스테이션의 CentOS 7은 인터넷에 연결할 수 없습니다. Pls, 콘테이너에 주인의 몇몇 항구를 묶는 어떤 도움든지주세요. 미리 감사드립니다 !! –

+0

이 답변에는 질문에 많은 내용이 포함되어있었습니다. 지금 이동하려는 경우 원래 질문에 컨텍스트를 추가하려면 [편집 내역] (https://stackoverflow.com/posts/43705620/revisions)에서 찾을 수 있습니다. 질문을 뒷받침하는 새로운 추가 정보를 제시 할 때는 항상 질문 게시물 자체에 추가하십시오. – halfer

관련 문제