Description
When running a task with docker and if docker inspect output size is more than 64k, it fails. The command docker inspect is blocked. The task remain in ASSIGNED state and after 15mins, the task is KILLED. The subprocess library [1] used in mesos to run this command is not handling the output beyond this size.
docker pull livecipher/mesos-docker-inspect-64k:1.0 > /dev/null && docker inspect livecipher/mesos-docker-inspect-64k:1.0 > inspect.out && du -sh inspect.out && rm -f inspect.out
76K inspect.out
You can reproduce it using the above image with any framework. I tested it with aurora.
Here is a sample failure: http://pastebin.com/w1Ty41rb
[1] https://github.com/apache/mesos/blob/0.21.1/src/docker/docker.cpp#L804