Skip to content

Commit

Permalink
task_engine: avoid pull behavior check for pause images
Browse files Browse the repository at this point in the history
  • Loading branch information
sharanyad committed Feb 12, 2019
1 parent bf8dd64 commit e316a08
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion agent/engine/docker_task_engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,11 @@ func (engine *DockerTaskEngine) pullContainer(task *apitask.Task, container *api
case apicontainer.ContainerCNIPause:
// ContainerCNIPause image are managed at startup
return dockerapi.DockerContainerMetadata{}
}

case apicontainer.ContainerNamespacePause:
// ContainerNamespacePause image is managed at startup
return dockerapi.DockerContainerMetadata{}
}

if engine.imagePullRequired(engine.cfg.ImagePullBehavior, container, task.Arn) {
// Record the pullStoppedAt timestamp
Expand Down

0 comments on commit e316a08

Please sign in to comment.