File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments