Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ec2b059

Browse files
committed
Merge branch '1.22'
2 parents 774e1d6 + 65d30b9 commit ec2b059

File tree

4 files changed

+36
-0
lines changed

4 files changed

+36
-0
lines changed

docker-swagger.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,9 @@
347347
"Image": {
348348
"type": "string"
349349
},
350+
"ImageID": {
351+
"type": "string"
352+
},
350353
"Command": {
351354
"type": "string"
352355
},

docs/cookbook/container-run.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ First step is to create a container and its associated configuration, by creatin
99
passing to the `create` api endpoint.
1010

1111
```php
12+
use Docker\Docker;
13+
use Docker\API\Model\ContainerConfig;
14+
1215
$docker = new Docker();
1316
$containerManager = $docker->getContainerManager();
1417

generated/Model/ContainerConfig.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ class ContainerConfig
1616
* @var string
1717
*/
1818
protected $image;
19+
/**
20+
* @var string
21+
*/
22+
protected $imageID;
1923
/**
2024
* @var string
2125
*/
@@ -181,6 +185,26 @@ public function setImage($image = null)
181185
return $this;
182186
}
183187

188+
/**
189+
* @return string
190+
*/
191+
public function getImageID()
192+
{
193+
return $this->imageID;
194+
}
195+
196+
/**
197+
* @param string $imageID
198+
*
199+
* @return self
200+
*/
201+
public function setImageID($imageID = null)
202+
{
203+
$this->imageID = $imageID;
204+
205+
return $this;
206+
}
207+
184208
/**
185209
* @return string
186210
*/

generated/Normalizer/ContainerConfigNormalizer.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ public function denormalize($data, $class, $format = null, array $context = [])
5252
if (isset($data->{'Image'})) {
5353
$object->setImage($data->{'Image'});
5454
}
55+
if (isset($data->{'ImageID'})) {
56+
$object->setImageID($data->{'ImageID'});
57+
}
5558
if (isset($data->{'Command'})) {
5659
$object->setCommand($data->{'Command'});
5760
}
@@ -192,6 +195,9 @@ public function normalize($object, $format = null, array $context = [])
192195
if (null !== $object->getImage()) {
193196
$data->{'Image'} = $object->getImage();
194197
}
198+
if (null !== $object->getImageID()) {
199+
$data->{'ImageID'} = $object->getImageID();
200+
}
195201
if (null !== $object->getCommand()) {
196202
$data->{'Command'} = $object->getCommand();
197203
}

0 commit comments

Comments
 (0)