GPU-Docker-API-Official
  1. ReplicaSet
GPU-Docker-API-Official
  • ReplicaSet
    • Run a container via replicaSet
      POST
    • Commit container as an image via replicaSet
      POST
    • Execute a command in the container via replicaSet
      POST
    • Patch a container via replicaSet
      PATCH
    • Rollback a container via replicaSet
      PATCH
    • Stop a container via replicaSet
      PATCH
    • Restart a container via replicaSet
      PATCH
    • Pause a replicaSet via replicaSet
      PATCH
    • Continue a replicaSet via replicaSet
      PATCH
    • Get version info about replicaSet
      GET
    • Get all version info about replicaSet
      GET
    • Delete a container via replicaSet
      DELETE
  • Volume
    • Create a volume
      POST
    • Patch a volume
      PATCH
    • Get version info about a volume
      GET
    • Get all version info about a volume
      GET
    • Delete a volume
      DELETE
  • Resource
    • Get gpu usage status
      GET
    • Get port usage status
      GET
  1. ReplicaSet

Commit container as an image via replicaSet

POST
/api/v1/replicaSet/{name}/commit
Commit replicaSet the current version of the container as an image.

Request

Path Params
name
string 
required
ReplicaSet Name
Body Params application/json
newImageName
string 
required
The name of the image you want
Example
{
  "newImageName": "foo-v1-image"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://127.0.0.1:2378/api/v1/replicaSet//commit' \
--header 'Content-Type: application/json' \
--data-raw '{
    "newImageName": "foo-v1-image"
}'

Responses

🟢200OK
application/json
Body
code
integer 
required
msg
string 
required
data
object 
required
imageName
string 
required
Saved Image Name
Example
{
  "code": 200,
  "msg": "Success",
  "data": {
    "imageName": "foo-v1-image"
  }
}
Modified at 2024-01-23 02:57:39
Previous
Run a container via replicaSet
Next
Execute a command in the container via replicaSet
Built with