mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Jefferson (JIRA)" <>
Subject [jira] [Commented] (MESOS-6351) --log-opt parameter not passed through to docker correctly
Date Mon, 10 Oct 2016 17:31:20 GMT


Andrew Jefferson commented on MESOS-6351:

it appears that this formatting is not correct for the --log-opt parameter

--log-opt=max-size=1m  <--WRONG

--log-opt max-size=1m  <--CORRECT

I guess maybe you have to put
key="log-opt max-size"

rather than

But I am not convinced

> --log-opt parameter not passed through to docker correctly
> ----------------------------------------------------------
>                 Key: MESOS-6351
>                 URL:
>             Project: Mesos
>          Issue Type: Bug
>          Components: docker
>            Reporter: Andrew Jefferson
> discovered when using marathon. see:
> setting docker paramters 
> {key: "log-opt", value: "max-size=1m"}
> produces the following command
> --log-opt=max-size=1m
> which doesnt seem to restrict the log file size, although no errors are thrown.
> in the docker docs it seems that
they don't use --log-opt=foo=bar rather they use --log-opt foo=bar - I'm not sure if this
is the cause or not but it could be.
> I don't know if this is really a marathon bug or a docker bug but if someone else wants
to look into it, something fishy is definitely going on.
> docker -H unix:///var/run/docker.sock run --cpu-shares 1024 --memory 2097152000 -e MARATHON_APP_VERSION=2016-09-09T17:58:45.534Z
-e HOST= -e MARATHON_APP_RESOURCE_CPUS=1.0 -e MARATHON_APP_DOCKER_IMAGE=tractableio/node-kafka-consumer:full-frontal
-e NODE_ENV=development -e PORT_10001=26242 -e MESOS_TASK_ID=node-kafka-consumer-dev.0dd9d0f3-76b7-11e6-8bb6-fe0768a57502
-e MARATHON_APP_LABELS= -e MARATHON_APP_ID=/node-kafka-consumer-dev -e PORT0=26242 -e LIBPROCESS_IP=
-e MESOS_SANDBOX=/mnt/mesos/sandbox -e MESOS_CONTAINER_NAME=mesos-97ba2d5b-4e46-4a8f-ac61-2283fc78c68f-S17.1c6f7865-fd37-4bf5-84c8-f4b4442cde45
-v /var/lib/mesos/slave/slaves/97ba2d5b-4e46-4a8f-ac61-2283fc78c68f-S17/frameworks/97ba2d5b-4e46-4a8f-ac61-2283fc78c68f-0000/executors/node-kafka-consumer-dev.0dd9d0f3-76b7-11e6-8bb6-fe0768a57502/runs/1c6f7865-fd37-4bf5-84c8-f4b4442cde45:/mnt/mesos/sandbox
--net host --log-opt=max-size=1m --name mesos-97ba2d5b-4e46-4a8f-ac61-2283fc78c68f-S17.1c6f7865-fd37-4bf5-84c8-f4b4442cde45

This message was sent by Atlassian JIRA

View raw message