Michael Crosby e21364603e Change c/r leaverunning to exit
This allows the default checkpoint functionality to leave the container
running after it has been checkpointed.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-12-04 13:35:03 -08:00
2015-12-04 13:35:03 -08:00
2015-12-04 13:35:03 -08:00
2015-12-02 16:37:46 -08:00
2015-12-04 13:35:03 -08:00
2015-12-01 10:55:13 -08:00
2015-12-04 13:31:17 -08:00
2015-12-01 12:00:11 -08:00
2015-12-01 18:49:24 -05:00
2015-12-02 17:17:12 -08:00
2015-12-01 10:55:13 -08:00
2015-12-01 10:55:13 -08:00
2015-12-02 10:59:43 -08:00
2015-12-02 16:37:46 -08:00
2015-12-04 13:31:17 -08:00
2015-12-04 13:31:17 -08:00

containerd

another container runtime

Start a container:

curl -XPOST localhost:8888/containers/redis -d '{"bundlePath": "/containers/redis"}' 

Add a process:

curl -s -XPUT localhost:8888/containers/redis/process -d@process.json | json_pp                   
{
   "user" : {
      "gid" : 0,
      "uid" : 0
   },
   "args" : [
      "sh",
      "-c",
      "sleep 10"
   ],
   "env" : [
      "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
      "TERM=xterm"
   ]
}

Get containers and state:

curl -s localhost:8888/state | json_pp
{
   "containers" : [
      {
         "processes" : [
            {
               "args" : [
                  "sh",
                  "-c",
                  "sleep 60"
               ],
               "user" : {
                  "gid" : 0,
                  "uid" : 0
               },
               "pid" : 25743,
               "env" : [
                  "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                  "TERM=xterm"
               ]
            }
         ],
         "id" : "redis",
         "state" : {
            "status" : "running"
         },
         "bundlePath" : "/containers/redis"
      }
   ]
}

Other stuff:

# pause and resume a container
curl -XPATCH localhost:8888/containers/redis -d '{"status": "paused"}'
curl -XPATCH localhost:8888/containers/redis -d '{"status": "running"}'

# send signal to a container's specific process
curl -XPOST localhost:8888/containers/redis/process/18306 -d '{"signal": 9}'
Description
2025-06-10 03:27:44 +00:00
Languages
Go 98%
Shell 1.4%
Makefile 0.4%