mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-05-28 14:30:13 +00:00
Merge pull request #3913 from nextcloud/enh/noid/log-normal-imagename
This commit is contained in:
@@ -579,11 +579,12 @@ class DockerActionManager
|
||||
|
||||
public function PullImage(Container $container) : void
|
||||
{
|
||||
$imageName = urlencode($this->BuildImageName($container));
|
||||
$url = $this->BuildApiUrl(sprintf('images/create?fromImage=%s', $imageName));
|
||||
$imageName = $this->BuildImageName($container);
|
||||
$encodedImageName = urlencode($imageName);
|
||||
$url = $this->BuildApiUrl(sprintf('images/create?fromImage=%s', $encodedImageName));
|
||||
try {
|
||||
$this->guzzleClient->post($url);
|
||||
$imageUrl = $this->BuildApiUrl(sprintf('images/%s/json', $imageName));
|
||||
$imageUrl = $this->BuildApiUrl(sprintf('images/%s/json', $encodedImageName));
|
||||
$this->guzzleClient->get($imageUrl)->getBody()->getContents();
|
||||
} catch (\Throwable $e) {
|
||||
throw new \Exception("Could not pull image " . $imageName . ". Please run 'sudo docker exec -it nextcloud-aio-mastercontainer docker pull " . $imageName . "' in order to find out why it failed.");
|
||||
|
||||
Reference in New Issue
Block a user