mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-03-01 08:15:28 +08:00
log normal imageName instead of encodedImageName
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
ff0d8637ab
commit
58329a7a48
1 changed files with 4 additions and 3 deletions
|
@ -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.");
|
||||
|
|
Loading…
Reference in a new issue