The instance-docker-ps command retrieves a list of running Docker container processes in JSON format.

JSON Input Data Format
{
    "id": string
}
id * Specifies the ID of the instance where the command will be executed.
* Indicates a mandatory field.

Code Snippets
Here are several code snippets provided for your direct use. Simply select your preferred tool/language by clicking on it.


Successful Response
{
    "result": "OK",
    "payload": [
        {
            "Command": "\"/docker-entrypoint.sh nginx -g 'daemon off;'\"",
            "CreatedAt": "2024-08-27 15:43:36 +0000 UTC",
            "ID": "9960683078e3c88212f9e88b21fb173e51c95f2d73f56d50b5ec6a3b847c932e",
            "Image": "sky.docker:575/nginx:certified-1.25",
            "Labels": "com.docker.compose.service=nginx,com.docker.compose.config-hash=5da928a7154bd713ed93b11a00658aac107b81ca9e57ba0db55f1cabf78abae0,com.docker.compose.depends_on=,com.docker.compose.image=sha256:593aee2afb642798b83a85306d2625fd7f089c0a1242c7e75a237846d80aa2a0,com.docker.compose.oneoff=False,com.docker.compose.project=tmp,com.docker.compose.project.config_files=/tmp/V7a0889c35-6590-42d9-a761-de49e2ee0eae,com.docker.compose.project.working_dir=/tmp,com.docker.compose.version=2.26.1,maintainer=NGINX Docker Maintainers ,com.docker.compose.container-number=1",
            "LocalVolumes": "0",
            "Mounts": "/data",
            "Names": "nginx",
            "Networks": "tmp_default",
            "Ports": "0.0.0.0:80->80/tcp, :::80->80/tcp",
            "RunningFor": "10 minutes ago",
            "Size": "0B",
            "State": "running",
            "Status": "Up 10 minutes"
        },
        ...
    ]
}

Failed Response
{
    "result": "ERR",
    "message": "Error message ..."
}