如何在马拉松部署文件中设置docker命令--log.level=DEBUG?
阅读此如何在马拉松部署文件中设置docker命令--log.level=DEBUG?,docker,mesos,marathon,Docker,Mesos,Marathon,阅读此docker compose文件:(来源:) 如何在此部署文件中设置--log.level=DEBUG命令: { "id": "/whoami", "cpus": 0.1, "mem": 256.0, "instances": 1, "container": { "type": "DOCKER", "docker": { "image": "traefik:v2.1.0", "network": "BRIDGE", "
docker compose
文件:(来源:)
如何在此部署文件中设置--log.level=DEBUG
命令:
{
"id": "/whoami",
"cpus": 0.1,
"mem": 256.0,
"instances": 1,
"container": {
"type": "DOCKER",
"docker": {
"image": "traefik:v2.1.0",
"network": "BRIDGE",
"portMappings": [
{
"containerPort": 80,
"protocol": "tcp"
}
]
}
}
}
我认为您只需要在JSON中添加
“args”:[“--log.level=DEBUG”]
{
"id": "/whoami",
"cpus": 0.1,
"mem": 256.0,
"instances": 1,
"args": ["--log.level=DEBUG"],
"container": {
"type": "DOCKER",
"docker": {
"image": "traefik:v2.1.0",
"network": "BRIDGE",
"portMappings": [
{
"containerPort": 80,
"protocol": "tcp"
}
]
}
}
}
这就是你要找的吗?
{
"id": "/whoami",
"cpus": 0.1,
"mem": 256.0,
"instances": 1,
"args": ["--log.level=DEBUG"],
"container": {
"type": "DOCKER",
"docker": {
"image": "traefik:v2.1.0",
"network": "BRIDGE",
"portMappings": [
{
"containerPort": 80,
"protocol": "tcp"
}
]
}
}
}