MCPcopy Create free account
hub / github.com/apache/mesos / pull

Method pull

src/slave/containerizer/docker.cpp:435–458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

433
434
435Future<Nothing> DockerContainerizerProcess::pull(
436 const ContainerID& containerId)
437{
438 if (!containers_.contains(containerId)) {
439 return Failure("Container is already destroyed");
440 }
441
442 Container* container = containers_.at(containerId);
443 container->state = Container::PULLING;
444
445 string image = container->image();
446
447 Future<Docker::Image> future = metrics.image_pull.time(docker->pull(
448 container->containerWorkDir,
449 image,
450 container->forcePullImage()));
451
452 containers_.at(containerId)->pull = future;
453
454 return future.then(defer(self(), [=]() {
455 VLOG(1) << "Docker pull " << image << " completed";
456 return Nothing();
457 }));
458}
459
460
461Try<Nothing> DockerContainerizerProcess::updatePersistentVolumes(

Callers

nothing calls this directly

Calls 9

FailureClass · 0.85
deferFunction · 0.85
NothingClass · 0.85
atMethod · 0.80
imageMethod · 0.80
forcePullImageMethod · 0.80
containsMethod · 0.45
timeMethod · 0.45
thenMethod · 0.45

Tested by

no test coverage detected