代码之家  ›  专栏  ›  技术社区  ›  Gaurav Ojha

OpenShift源站快速启动错误:getsockopt:没有到VM上主机172.30.0.1的路由

  •  0
  • Gaurav Ojha  · 技术社区  · 6 年前

    我目前正在尝试了解有关OpenShift Origin的更多信息,并在VMWare Fusion上部署了CentOS VM。我按照OpenShift快速入门指南安装并运行了OpenShift原始服务器。然而,当我尝试部署测试应用程序时,在部署过程中会出现以下错误。

    Test Deployment Failure Log

    添加新应用程序时,我还收到以下消息

    oc new-app openshift/deployment-example    
    --> Found Docker image 1c839d8 (2 years old) from Docker Hub for "openshift/deployment-example"    
        * An image stream will be created as "deployment-example:latest" that will track this image    
        * This image will be deployed in deployment config "deployment-example"    
        * Port 8080/tcp will be load balanced by service "deployment-example"    
          * Other containers can access this service through the hostname "deployment-example"    
        * WARNING: Image "openshift/deployment-example" runs as the 'root' user which may not be permitted by your cluster administrator
    
    --> Creating resources ...
        imagestream "deployment-example" created
        deploymentconfig "deployment-example" created
        service "deployment-example" created
    --> Success
        **WARNING: No Docker registry has been configured with the server. Automatic builds and deployments may not function.**
    

    要在我的VM上成功部署它,需要做些什么?我不确定上述警告消息是否与问题有关。

    1 回复  |  直到 6 年前
        1
  •  0
  •   Gaurav Ojha    6 年前

    我的错误是8443/tcp端口没有打开。使用

    sudo firewall cmd--区域=公共--添加端口=8443/tcp--永久

    sudo firewall cmd--重新加载

    它开始工作了