Patch the configuration of the latest version of existing container via create a new container and copy the old container system data to the new container.Including changing the number of gpu and updating the volume binding.If you request body is empty(e.g. {}), it will recreate a container based on the existing configuration.
The old version container will be deleted. For example, if foo-1 calls the /api/v1/replicaSet/:name and create foo-2, foo-1 will be deleted.
Request
Path Params
name
string
required
Body Params application/json
gpuPatch
object
required
gpuCount
integer
required
To adjust the number of gpus, it is so simple. If you don't want to use the gpu, set it to 0.
volumePatch
object
required
First find the mount information by matching oldBind, then change it.
oldBind
object
required
The old binding information, which you can get via '/api/v1/replicaSet/:name'.
newBind
object
required
If it is a docker volume, make sure it already exists.