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

Get version info about replicaSet

GET
/api/v1/replicaSet/{name}
Get information about the current version of the replicaset, which you can use to see the port number that the container exposes to the host or other information when the cotainer was created.

Request

Path Params
name
string 
required
ReplicaSet Name
Example:
foo

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 GET 'http://127.0.0.1:2378/api/v1/replicaSet/foo'

Responses

🟢200OK
application/json
Body
code
integer 
required
msg
string 
required
data
object 
required
info
object 
required
Container Creation Information
Example
{
  "code": 200,
  "msg": "Success",
  "data": {
    "info": {
      "version": 8,
      "createTime": "2024-01-22 07:36:04",
      "config": {
        "Hostname": "",
        "Domainname": "",
        "User": "",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "ExposedPorts": {
          "22/tcp": {},
          "443/tcp": {}
        },
        "Tty": true,
        "OpenStdin": true,
        "StdinOnce": false,
        "Env": [
          "USER=foo",
          "CONTAINER_VERSION=8"
        ],
        "Cmd": null,
        "Image": "nvidia/cuda:10.0-base",
        "Volumes": null,
        "WorkingDir": "",
        "Entrypoint": null,
        "OnBuild": null,
        "Labels": null
      },
      "hostConfig": {
        "Binds": [
          "veil-0:/root/veil-0",
          "/mynfs/data/ctr-knock:/root/data/ctr-knock"
        ],
        "ContainerIDFile": "",
        "LogConfig": {
          "Type": "",
          "Config": null
        },
        "NetworkMode": "",
        "PortBindings": {
          "22/tcp": [
            {
              "HostIp": "",
              "HostPort": "40000"
            }
          ],
          "443/tcp": [
            {
              "HostIp": "",
              "HostPort": "40001"
            }
          ]
        },
        "RestartPolicy": {
          "Name": "",
          "MaximumRetryCount": 0
        },
        "AutoRemove": false,
        "VolumeDriver": "",
        "VolumesFrom": null,
        "ConsoleSize": [
          0,
          0
        ],
        "CapAdd": null,
        "CapDrop": null,
        "CgroupnsMode": "",
        "Dns": null,
        "DnsOptions": null,
        "DnsSearch": null,
        "ExtraHosts": null,
        "GroupAdd": null,
        "IpcMode": "",
        "Cgroup": "",
        "Links": null,
        "OomScoreAdj": 0,
        "PidMode": "",
        "Privileged": false,
        "PublishAllPorts": false,
        "ReadonlyRootfs": false,
        "SecurityOpt": null,
        "UTSMode": "",
        "UsernsMode": "",
        "ShmSize": 0,
        "Isolation": "",
        "CpuShares": 0,
        "Memory": 0,
        "NanoCpus": 0,
        "CgroupParent": "",
        "BlkioWeight": 0,
        "BlkioWeightDevice": null,
        "BlkioDeviceReadBps": null,
        "BlkioDeviceWriteBps": null,
        "BlkioDeviceReadIOps": null,
        "BlkioDeviceWriteIOps": null,
        "CpuPeriod": 0,
        "CpuQuota": 0,
        "CpuRealtimePeriod": 0,
        "CpuRealtimeRuntime": 0,
        "CpusetCpus": "",
        "CpusetMems": "",
        "Devices": null,
        "DeviceCgroupRules": null,
        "DeviceRequests": [
          {
            "Driver": "nvidia",
            "Count": 0,
            "DeviceIDs": [
              "GPU-bc85a406-0357-185f-a56c-afb49572bdbe",
              "GPU-c6b3ca5f-c1ac-8171-582b-737b70a6bbce",
              "GPU-dc6d913c-8df4-a9a4-49e6-b82fcba5a6f9"
            ],
            "Capabilities": [
              [
                "gpu"
              ]
            ],
            "Options": null
          }
        ],
        "MemoryReservation": 0,
        "MemorySwap": 0,
        "MemorySwappiness": null,
        "OomKillDisable": null,
        "PidsLimit": null,
        "Ulimits": null,
        "CpuCount": 0,
        "CpuPercent": 0,
        "IOMaximumIOps": 0,
        "IOMaximumBandwidth": 0,
        "MaskedPaths": null,
        "ReadonlyPaths": null
      },
      "networkingConfig": {
        "EndpointsConfig": null
      },
      "platform": {
        "architecture": "",
        "os": ""
      },
      "containerName": "foo-8"
    }
  }
}
Modified at 2024-01-23 03:01:40
Previous
Continue a replicaSet via replicaSet
Next
Get all version info about replicaSet
Built with