Skip to content

Instantly share code, notes, and snippets.

@carmark
Last active August 29, 2015 14:27
Show Gist options
  • Save carmark/8bff6bc739981bbdc982 to your computer and use it in GitHub Desktop.
Save carmark/8bff6bc739981bbdc982 to your computer and use it in GitHub Desktop.

Patch:

runv: b757f7e79b1cdf97dc14e69767f25f1eaff3d9b3

hyper: 585a097628c890d50f754de3149564a234f89a9f

lei@leis-MacBook-Pro:[hyper] (info)$ ./hyper list
         POD ID                      POD Name             VM name    Status
 pod-JQJVhUAOEm   test-container-create-ubunt                       pending
 pod-KUGIRnBoJL   test-container-create-ubunt                       pending
 pod-OtqjplKVjM             puller-0401769358                       pending
 pod-bDMJNUHKhv   test-container-create-ubunt                       pending
 pod-nIZjtetxvF   test-container-create-ubunt                       pending
 
lei@leis-MacBook-Pro:[hyper] (info)$ ./hyper start pod-OtqjplKVjM
Successfully started the Pod(pod-OtqjplKVjM)

lei@leis-MacBook-Pro:[hyper] (info)$ curl --http1.0 --request GET "http://127.0.0.1:12345/pod/info?podName=pod-OtqjplKVjM" | python -m json.tool
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   698  100   698    0     0   427k      0 --:--:-- --:--:-- --:--:--  681k
{
    "apiVersion": "1.17",
    "kind": "Pod",
    "spec": {
        "containers": [
            {
                "args": [],
                "commands": [
                    "sh"
                ],
                "containerID": "e4028673ecca49484edfa9a901bc6556045603028483a49be486e85c9ce7a974",
                "env": [],
                "image": "puller",
                "imageID": "1000000000000000000000000000000000000000000000000000000000000000",
                "imagePullPolicy": "",
                "name": "/puller-0401769358",
                "ports": [],
                "volumeMounts": [],
                "workingDir": "/"
            }
        ],
        "volumes": []
    },
    "status": {
        "containerStatus": [
            {
                "running": {
                    "startedAt": "2015-08-20T17:39:55Z"
                },
                "terminated": {
                    "exitCode": 0,
                    "finishedAt": "",
                    "message": "",
                    "reason": "",
                    "startedAt": ""
                },
                "waiting": {
                    "reason": ""
                }
            }
        ],
        "hostIP": "192.168.0.105",
        "message": "",
        "phase": "Running",
        "podIP": [
            "192.168.123.3"
        ],
        "reason": "",
        "startTime": "2015-08-20T17:39:55Z"
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment