You should specify a corresponding option in TaskInfo
to force pull the image. Where exactly — depends on which container type (read: containerizer) you use.
If you use docker containerizer, i.e. your TaskInfo.container.type = DOCKER
, then have a look at ContainerInfo.DockerInfo.force_pull_image
. What you want to set in your JSON for TaskInfo
is TaskInfo.container.docker.force_pull_image = true
.
If you use mesos containerizer, i.e. your TaskInfo.container.type = Mesos
, then you specify TaskInfo.container.mesos.image
, which might be a docker or an appc container, and hence should look at Image
, which has a cached
flag. What you want to set in your JSON for TaskInfo
is TaskInfo.container.mesos.image.cached = false
.