【发布时间】:2020-10-21 03:10:45
【问题描述】:
我正在尝试使用 Web 控制台在 Marathon 中创建应用程序。这是 JSON 文件:
{
"id": "TestSpringApplication",
"cmd": "/usr/bin/java -jar -Dspring.profiles.active=test /spring-boot-rest-example-0.5.0.war",
"cpus": 1,
"mem": 32.0,
"networks": [ { "mode": "container/bridge" } ],
"container": {
"type": "DOCKER",
"docker": {
"image": "openjdk:8-jre-alpine"
},
"portMappings": [
{ "containerPort": 8090, "hostPort": 8090 }, {"containerPort": 8091, "hostPort": 8091 }],
"volumes" : [
{
"containerPath": "/",
"mode": "RW",
"hostPath": "/root/spring-boot-rest-example/target"
}
]
}
}
但是当我把它放在盒子里时,却出现了这个错误:
你的配置有问题
appId:error.pattern
有人遇到过这个问题吗?我搜索了很多文档,但没有找到任何有用的东西
【问题讨论】:
标签: docker containers mesos marathon mesosphere