src/Joli/JoliCi/Command/UpdateImageCommand.php
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $container = new Container();
        $docker = $container->getDocker();
        $logger = $container->getLoggerCallback((OutputInterface::VERBOSITY_VERBOSE <= $output->getVerbosity()));

        foreach ($docker->getImageManager()->findAll() as $image) {
            if (preg_match('#^jolicode/(.+?)$#', $image->getRepository())) {
                $output->writeln(sprintf("Update %s image", $image->getRepository()));
                $docker->getImageManager()->pull($image->getRepository(), 'latest', $logger->getBuildCallback());
            }
        }
    }
protected function execute(InputInterface $input, OutputInterface $output)
    {
        $container = new Container();
        $docker = $container->getDocker();
        $logger = $container->getLoggerCallback((OutputInterface::VERBOSITY_VERBOSE <= $output->getVerbosity()));

        foreach ($docker->getImageManager()->findAll() as $image) {
            if (preg_match('#^jolicode/(.+?)$#', $image->getRepository())) {
                $output->writeln(sprintf("Update %s image", $image->getRepository()));
                $docker->getImageManager()->pull($image->getRepository(), 'latest', $logger->getBuildCallback());
            }
        }
    }
{@inheritdoc}