mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-09 15:28:01 +00:00
Merge pull request #3913 from nextcloud/enh/noid/log-normal-imagename
This commit is contained in:
commit
8d839190dc
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…
Add table
Add a link
Reference in a new issue