Run a container consists of two parts: create and start.When the container is created, the creation information is saved to etcd.
ReplicaSet is just an abstract concept, there is no concrete implementations,it just has to manage docker container, and save the container historical version information, that's all.
Request
Body Params application/json
imageName
string
required
It's not automatically download from docker hub, you need to pull it locally first.
replicaSetName
string
required
Cannot cotainer '-', ReplicaSet managed containers will add version numbers, e.g. foo-0, foo-1.
gpuCount
integer
required
If gpuCount is 0, the gpu is not used.
binds
array [object {2}]
required
Bind mounts
src
string
required
If starts with /, mounts the host's folders or files into the container.If it does not start with /, mount the docker volume into the container.
dest
string
required
Cannot mount to root direcotry('/').
env
array[string]
required
Environment variable, the format is like foo=bar.
containerPorts
array[string]
required
The port number inside the container, with a randomly assigned host port number bound to it.