2017-01-30 127 views
2

我嘗試測試manageiq監視到hawkular。我使用以下命令製作了manageiq碼頭集裝箱ManageIQ碼頭集裝箱不能與網絡瀏覽器連接

docker pull manageiq/manageiq:euwe-1 
docker run --privileged -d -p 8443:443 manageiq/manageiq:euwe-1 

我可以看到要生成並運行的容器。不過,我無法使用此網址連接到ManageIQ,網址爲https://127.0.0.1:8443。在manageiq碼頭集裝箱裏面的日誌文件中顯示如下的錯誤,

[ssl:warn] [pid 815] AH01909: RSA certificate configured for 172.17.0.2:443 does NOT include an ID which matches the server name 
[ssl:warn] [pid 815] AH01909: RSA certificate configured for 172.17.0.2:443 does NOT include an ID which matches the server name 
[proxy:error] [pid 816] (111)Connection refused: AH00957: HTTP: attempt to connect to 0.0.0.0:3000 (0.0.0.0) failed 
[proxy:error] [pid 816] AH00959: ap_proxy_connect_backend disabling worker for (0.0.0.0) for 60s 
[proxy_http:error] [pid 816] [client 172.17.0.1:39140] AH01114: HTTP: failed to make connection to backend: 0.0.0.0 
[proxy:error] [pid 819] (111)Connection refused: AH00957: HTTP: attempt to connect to 0.0.0.0:3000 (0.0.0.0) failed 
[proxy:error] [pid 819] AH00959: ap_proxy_connect_backend disabling worker for (0.0.0.0) for 60s 
[proxy_http:error] [pid 819] [client 172.17.0.1:39146] AH01114: HTTP: failed to make connection to backend: 0.0.0.0, referer: https://localhost:8443/ 

回答

0

我被告知修改配置中的碼頭容器並不合適,必須在碼頭容器外部配置碼頭網絡。所以這是我的決議。

  1. Windows 10:本網站以韓文撰寫。我希望你找到並閱讀英文網站。^_^

https://support.microsoft.com/ko-kr/help/3151631/rc4-cipher-is-no-longer-supported-in-internet-explorer-11-or-microsoft-edge

  • 的CentOS 7,Firefox瀏覽器,
  • 「環境配置」=> 「安全」=>「例外列表「按鈕 =>添加」 https://localhost:8443/「URL

    最後檢查這一問題reference site

    1

    我解決了它。原因是Docker容器上未設置https連接。這是這個過程,

    1. 進入容器

    泊塢窗EXEC -ti CONTAINER_ID的bash -l

    2.1936容器,找到server.crt這和server.key文件

    [root @ 17a6a6bd8743 vmdb]#find/-name server.crt

    /opt/manageiq/manageiq-ui-service/node_modules/browser-sync/lib/server/certs/server.crt

    [根@ 17a6a6bd8743 vmdb]#找到/ -name server.key

    /opt/manageiq/manageiq-ui-service/node_modules/browser-sync/lib/server/certs/server.key

  • 然後編輯/ etc/httpd的/ CONF .d/ssl.conf文件如下
  • [根@ 17a6a6bd8743 vmdb]#VI /etc/httpd/conf.d/ssl.conf

    本地主機服務器名:8443 #specify服務器名稱

    SSLProtocol -All +的TLSv1 + TLSv1.1 + TLSv1.2工作#類型SSL協議

    了SSLCertificateFile /opt/manageiq/manageiq-ui-service/node_modules/browser-sync/lib/server/certs/server.crt#鍵入server.crt這的位置夾

    SSLCertificateKeyFile /opt/manageiq/manageiq-ui-service/node_modules/browser-sync/lib/server/certs/server.key #type th e服務器的位置文件夾。鍵

  • 組的httpd允許HTTPS
  • [根@ 17a6a6bd8743 vmdb]#systemctl重啓的httpd

    [根@ 17a6a6bd8743 vmdb]#蔭安裝firewalld -y

    [根@ 17a6a6bd8743 vmdb]#systemctl啓動firewalld

    [根@ 17a6a6bd8743 vmdb]#systemctl使firewalld

    [根@ 17a6a6bd8743 vmdb]#防火牆-CMD --add服務= HTTPS --permanent

    成功

    [根@ 17a6a6bd8743 vmdb] #防火牆-CMD --reload

    成功

    OK!配置完美。連接https://localhost:8443 並享受!