gpt4 book ai didi

docker - 无法使用端口映射通过 Marathon 启动 SonarQube docker 容器

转载 作者:行者123 更新时间:2023-12-02 18:41:32 25 4
gpt4 key购买 nike

我正在尝试使用端口映射运行 sonarqube docker 容器以在 9050 而不是默认的 9000 上公开 ui。此命令运行良好:

docker run -d --name sonarqube -p 9050:9000 -p 9092:9092 sonarqube

但是通过 Marathon 出现了以下错误:

2016.05.23 12:12:40 ERROR web[o.a.c.c.C.[.[.[/]] Exception sending context initialized event to listener instance of class org.sonar.server.platform.PlatformServletContextListener org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: [] at org.elasticsearch.client.transport.TransportClientNodesService.ensureNodesAreAvailable(TransportClientNodesService.java:305) ~[elasticsearch-1.7.5.jar:na]

 {
"id": "/sonarqube",
"cmd": null,
"cpus": 1,
"mem": 500,
"disk": 800,
"instances": 0,
"container": {
"type": "DOCKER",
"volumes": [],
"docker": {
"image": "sonarqube",
"network": "BRIDGE",
"portMappings": [
{
"containerPort": 9000,
"hostPort": 9050,
"servicePort": 10105,
"protocol": "tcp",
"labels": {}
},
{
"containerPort": 9092,
"hostPort": 9092,
"servicePort": 10106,
"protocol": "tcp",
"labels": {}
},
{
"containerPort": 9001,
"hostPort": 9051,
"servicePort": 10107,
"protocol": "tcp",
"labels": {}
}
],
"privileged": false,
"parameters": [],
"forcePullImage": false
}
},
"portDefinitions": [
{
"port": 10105,
"protocol": "tcp",
"labels": {}
},
{
"port": 10106,
"protocol": "tcp",
"labels": {}
},
{
"port": 10107,
"protocol": "tcp",
"labels": {}
}
]
}

the log file

最佳答案

我猜你必须填写 cmd,它应该看起来像“cmd”:“./bin/run.sh”。告诉我如果是这样

关于docker - 无法使用端口映射通过 Marathon 启动 SonarQube docker 容器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37391344/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com