下面是我的tomcat.json文件:
{
"id":"tomcat-docker",
"mem":512,
"cpus":1.0,
"instances":1,
"container":{
"type":"DOCKER",
"docker":{
"image":"tomcat:8.0",
"network":"BRIDGE",
"portMappings":[
{
"containerPort":8080,
"hostPort":0,
"servicePort":10000,
"protocol":"tcp"
}
]
}
},
"healthChecks":[
{
"protocol":"HTTP",
"portIndex":0,
"path":"/"
}
]
}
在使用marathon运行应用程序时,它正在运行,我正在创建一个Tomcat实例,可以从myhostname:31571访问它。当我点击这个实例时,它显示:
“Firefox无法通过主机名建立与服务器的连接:31571”