Skip to content

Commit fb1cdd7

Browse files
committed
Signed-off-by: Kang HuaiShuai <khs1994@khs1994.com>
1 parent 03a8eeb commit fb1cdd7

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

src/Docker/Distribution/Client.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ class Client
2222
*
2323
* Return image digest and platform information by contacting the registry.
2424
*
25-
* @param string $name
25+
* @param string $imageName
2626
*
2727
* @return mixed
2828
*
2929
* @throws \Exception
3030
*/
31-
public function info(string $name)
31+
public function info(string $imageName)
3232
{
33-
return $this->curl->get($this->url.'/distribution/'.$name.'/json');
33+
return $this->curl->get($this->url.'/distribution/'.$imageName.'/json');
3434
}
3535
}

src/Docker/Docker.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ public static function docker(array $option)
167167
// 参数可以为空,默认连接到 127.0.0.1:2375
168168

169169
if (!(self::$docker instanceof self)) {
170-
self::$docker = new self($option, new Curl());
170+
$curl = new Curl();
171+
$curl->setHeader('Expect', '100-continue');
172+
self::$docker = new self($option, $curl);
171173
}
172174

173175
return self::$docker;

0 commit comments

Comments
 (0)