protected function updateImage() { try { $this->stopProxy(); $this->stdOut->writeln("<comment>Removing nginx proxy container"); Docker::rm(['nginx-proxy']); } catch (\Exception $e) { } Docker::pull(['jwilder/nginx-proxy']); $this->createProxy(); }