Merge pull request #1914 from tianon/base-repository-is-deprecated

Removing the deprecated `base` repository from more docs
This commit is contained in:
Andy Rothfusz 2013-09-19 11:04:11 -07:00
commit c42056b969
10 changed files with 125 additions and 126 deletions

View File

@ -77,7 +77,7 @@ func crashTest() error {
stop = false stop = false
for i := 0; i < 100 && !stop; { for i := 0; i < 100 && !stop; {
func() error { func() error {
cmd := exec.Command(DOCKERPATH, "run", "base", "echo", fmt.Sprintf("%d", totalTestCount)) cmd := exec.Command(DOCKERPATH, "run", "ubuntu", "echo", fmt.Sprintf("%d", totalTestCount))
i++ i++
totalTestCount++ totalTestCount++
outPipe, err := cmd.StdoutPipe() outPipe, err := cmd.StdoutPipe()

View File

@ -49,28 +49,28 @@ List containers
[ [
{ {
"Id": "8dfafdbc3a40", "Id": "8dfafdbc3a40",
"Image": "base:latest", "Image": "ubuntu:latest",
"Command": "echo 1", "Command": "echo 1",
"Created": 1367854155, "Created": 1367854155,
"Status": "Exit 0" "Status": "Exit 0"
}, },
{ {
"Id": "9cd87474be90", "Id": "9cd87474be90",
"Image": "base:latest", "Image": "ubuntu:latest",
"Command": "echo 222222", "Command": "echo 222222",
"Created": 1367854155, "Created": 1367854155,
"Status": "Exit 0" "Status": "Exit 0"
}, },
{ {
"Id": "3176a2479c92", "Id": "3176a2479c92",
"Image": "base:latest", "Image": "centos:latest",
"Command": "echo 3333333333333333", "Command": "echo 3333333333333333",
"Created": 1367854154, "Created": 1367854154,
"Status": "Exit 0" "Status": "Exit 0"
}, },
{ {
"Id": "4cb07b47f9fb", "Id": "4cb07b47f9fb",
"Image": "base:latest", "Image": "fedora:latest",
"Command": "echo 444444444444444444444444444444444", "Command": "echo 444444444444444444444444444444444",
"Created": 1367854152, "Created": 1367854152,
"Status": "Exit 0" "Status": "Exit 0"
@ -117,7 +117,7 @@ Create a container
"date" "date"
], ],
"Dns":null, "Dns":null,
"Image":"base", "Image":"ubuntu",
"Volumes":{}, "Volumes":{},
"VolumesFrom":"" "VolumesFrom":""
} }
@ -183,7 +183,7 @@ Inspect a container
"date" "date"
], ],
"Dns": null, "Dns": null,
"Image": "base", "Image": "ubuntu",
"Volumes": {}, "Volumes": {},
"VolumesFrom": "" "VolumesFrom": ""
}, },
@ -490,14 +490,14 @@ List Images
[ [
{ {
"Repository":"base", "Repository":"ubuntu",
"Tag":"ubuntu-12.10", "Tag":"precise",
"Id":"b750fe79269d", "Id":"b750fe79269d",
"Created":1364102658 "Created":1364102658
}, },
{ {
"Repository":"base", "Repository":"ubuntu",
"Tag":"ubuntu-quantal", "Tag":"12.04",
"Id":"b750fe79269d", "Id":"b750fe79269d",
"Created":1364102658 "Created":1364102658
} }
@ -529,9 +529,9 @@ List Images
"d6434d954665" -> "d82cbacda43a" "d6434d954665" -> "d82cbacda43a"
base -> "e9aa60c60128" [style=invis] base -> "e9aa60c60128" [style=invis]
"074be284591f" -> "f71189fff3de" "074be284591f" -> "f71189fff3de"
"b750fe79269d" [label="b750fe79269d\nbase",shape=box,fillcolor="paleturquoise",style="filled,rounded"]; "b750fe79269d" [label="b750fe79269d\nubuntu",shape=box,fillcolor="paleturquoise",style="filled,rounded"];
"e9aa60c60128" [label="e9aa60c60128\nbase2",shape=box,fillcolor="paleturquoise",style="filled,rounded"]; "e9aa60c60128" [label="e9aa60c60128\ncentos",shape=box,fillcolor="paleturquoise",style="filled,rounded"];
"9a33b36209ed" [label="9a33b36209ed\ntest",shape=box,fillcolor="paleturquoise",style="filled,rounded"]; "9a33b36209ed" [label="9a33b36209ed\nfedora",shape=box,fillcolor="paleturquoise",style="filled,rounded"];
base [style=invisible] base [style=invisible]
} }
@ -552,7 +552,7 @@ Create an image
.. sourcecode:: http .. sourcecode:: http
POST /images/create?fromImage=base HTTP/1.1 POST /images/create?fromImage=ubuntu HTTP/1.1
**Example response**: **Example response**:
@ -572,8 +572,8 @@ Create an image
:statuscode 500: server error :statuscode 500: server error
Insert a file in a image Insert a file in an image
************************ *************************
.. http:post:: /images/(name)/insert .. http:post:: /images/(name)/insert
@ -608,7 +608,7 @@ Inspect an image
.. sourcecode:: http .. sourcecode:: http
GET /images/base/json HTTP/1.1 GET /images/centos/json HTTP/1.1
**Example response**: **Example response**:
@ -638,7 +638,7 @@ Inspect an image
"Env":null, "Env":null,
"Cmd": ["/bin/bash"] "Cmd": ["/bin/bash"]
,"Dns":null, ,"Dns":null,
"Image":"base", "Image":"centos",
"Volumes":null, "Volumes":null,
"VolumesFrom":"" "VolumesFrom":""
} }
@ -660,7 +660,7 @@ Get the history of an image
.. sourcecode:: http .. sourcecode:: http
GET /images/base/history HTTP/1.1 GET /images/fedora/history HTTP/1.1
**Example response**: **Example response**:

View File

@ -49,28 +49,28 @@ List containers
[ [
{ {
"Id": "8dfafdbc3a40", "Id": "8dfafdbc3a40",
"Image": "base:latest", "Image": "ubuntu:latest",
"Command": "echo 1", "Command": "echo 1",
"Created": 1367854155, "Created": 1367854155,
"Status": "Exit 0" "Status": "Exit 0"
}, },
{ {
"Id": "9cd87474be90", "Id": "9cd87474be90",
"Image": "base:latest", "Image": "ubuntu:latest",
"Command": "echo 222222", "Command": "echo 222222",
"Created": 1367854155, "Created": 1367854155,
"Status": "Exit 0" "Status": "Exit 0"
}, },
{ {
"Id": "3176a2479c92", "Id": "3176a2479c92",
"Image": "base:latest", "Image": "centos:latest",
"Command": "echo 3333333333333333", "Command": "echo 3333333333333333",
"Created": 1367854154, "Created": 1367854154,
"Status": "Exit 0" "Status": "Exit 0"
}, },
{ {
"Id": "4cb07b47f9fb", "Id": "4cb07b47f9fb",
"Image": "base:latest", "Image": "fedora:latest",
"Command": "echo 444444444444444444444444444444444", "Command": "echo 444444444444444444444444444444444",
"Created": 1367854152, "Created": 1367854152,
"Status": "Exit 0" "Status": "Exit 0"
@ -117,7 +117,7 @@ Create a container
"date" "date"
], ],
"Dns":null, "Dns":null,
"Image":"base", "Image":"ubuntu",
"Volumes":{}, "Volumes":{},
"VolumesFrom":"" "VolumesFrom":""
} }
@ -183,7 +183,7 @@ Inspect a container
"date" "date"
], ],
"Dns": null, "Dns": null,
"Image": "base", "Image": "ubuntu",
"Volumes": {}, "Volumes": {},
"VolumesFrom": "" "VolumesFrom": ""
}, },
@ -490,14 +490,14 @@ List Images
[ [
{ {
"Repository":"base", "Repository":"ubuntu",
"Tag":"ubuntu-12.10", "Tag":"precise",
"Id":"b750fe79269d", "Id":"b750fe79269d",
"Created":1364102658 "Created":1364102658
}, },
{ {
"Repository":"base", "Repository":"ubuntu",
"Tag":"ubuntu-quantal", "Tag":"12.04",
"Id":"b750fe79269d", "Id":"b750fe79269d",
"Created":1364102658 "Created":1364102658
} }
@ -529,9 +529,9 @@ List Images
"d6434d954665" -> "d82cbacda43a" "d6434d954665" -> "d82cbacda43a"
base -> "e9aa60c60128" [style=invis] base -> "e9aa60c60128" [style=invis]
"074be284591f" -> "f71189fff3de" "074be284591f" -> "f71189fff3de"
"b750fe79269d" [label="b750fe79269d\nbase",shape=box,fillcolor="paleturquoise",style="filled,rounded"]; "b750fe79269d" [label="b750fe79269d\nubuntu",shape=box,fillcolor="paleturquoise",style="filled,rounded"];
"e9aa60c60128" [label="e9aa60c60128\nbase2",shape=box,fillcolor="paleturquoise",style="filled,rounded"]; "e9aa60c60128" [label="e9aa60c60128\ncentos",shape=box,fillcolor="paleturquoise",style="filled,rounded"];
"9a33b36209ed" [label="9a33b36209ed\ntest",shape=box,fillcolor="paleturquoise",style="filled,rounded"]; "9a33b36209ed" [label="9a33b36209ed\nfedora",shape=box,fillcolor="paleturquoise",style="filled,rounded"];
base [style=invisible] base [style=invisible]
} }
@ -552,7 +552,7 @@ Create an image
.. sourcecode:: http .. sourcecode:: http
POST /images/create?fromImage=base HTTP/1.1 POST /images/create?fromImage=ubuntu HTTP/1.1
**Example response**: **Example response**:
@ -575,8 +575,8 @@ Create an image
:statuscode 500: server error :statuscode 500: server error
Insert a file in a image Insert a file in an image
************************ *************************
.. http:post:: /images/(name)/insert .. http:post:: /images/(name)/insert
@ -615,7 +615,7 @@ Inspect an image
.. sourcecode:: http .. sourcecode:: http
GET /images/base/json HTTP/1.1 GET /images/centos/json HTTP/1.1
**Example response**: **Example response**:
@ -645,7 +645,7 @@ Inspect an image
"Env":null, "Env":null,
"Cmd": ["/bin/bash"] "Cmd": ["/bin/bash"]
,"Dns":null, ,"Dns":null,
"Image":"base", "Image":"centos",
"Volumes":null, "Volumes":null,
"VolumesFrom":"" "VolumesFrom":""
} }
@ -667,7 +667,7 @@ Get the history of an image
.. sourcecode:: http .. sourcecode:: http
GET /images/base/history HTTP/1.1 GET /images/fedora/history HTTP/1.1
**Example response**: **Example response**:

View File

@ -49,7 +49,7 @@ List containers
[ [
{ {
"Id": "8dfafdbc3a40", "Id": "8dfafdbc3a40",
"Image": "base:latest", "Image": "ubuntu:latest",
"Command": "echo 1", "Command": "echo 1",
"Created": 1367854155, "Created": 1367854155,
"Status": "Exit 0", "Status": "Exit 0",
@ -59,7 +59,7 @@ List containers
}, },
{ {
"Id": "9cd87474be90", "Id": "9cd87474be90",
"Image": "base:latest", "Image": "ubuntu:latest",
"Command": "echo 222222", "Command": "echo 222222",
"Created": 1367854155, "Created": 1367854155,
"Status": "Exit 0", "Status": "Exit 0",
@ -69,7 +69,7 @@ List containers
}, },
{ {
"Id": "3176a2479c92", "Id": "3176a2479c92",
"Image": "base:latest", "Image": "centos:latest",
"Command": "echo 3333333333333333", "Command": "echo 3333333333333333",
"Created": 1367854154, "Created": 1367854154,
"Status": "Exit 0", "Status": "Exit 0",
@ -79,7 +79,7 @@ List containers
}, },
{ {
"Id": "4cb07b47f9fb", "Id": "4cb07b47f9fb",
"Image": "base:latest", "Image": "fedora:latest",
"Command": "echo 444444444444444444444444444444444", "Command": "echo 444444444444444444444444444444444",
"Created": 1367854152, "Created": 1367854152,
"Status": "Exit 0", "Status": "Exit 0",
@ -129,7 +129,7 @@ Create a container
"date" "date"
], ],
"Dns":null, "Dns":null,
"Image":"base", "Image":"ubuntu",
"Volumes":{}, "Volumes":{},
"VolumesFrom":"" "VolumesFrom":""
} }
@ -195,7 +195,7 @@ Inspect a container
"date" "date"
], ],
"Dns": null, "Dns": null,
"Image": "base", "Image": "ubuntu",
"Volumes": {}, "Volumes": {},
"VolumesFrom": "" "VolumesFrom": ""
}, },
@ -502,16 +502,16 @@ List Images
[ [
{ {
"Repository":"base", "Repository":"ubuntu",
"Tag":"ubuntu-12.10", "Tag":"precise",
"Id":"b750fe79269d", "Id":"b750fe79269d",
"Created":1364102658, "Created":1364102658,
"Size":24653, "Size":24653,
"VirtualSize":180116135 "VirtualSize":180116135
}, },
{ {
"Repository":"base", "Repository":"ubuntu",
"Tag":"ubuntu-quantal", "Tag":"12.04",
"Id":"b750fe79269d", "Id":"b750fe79269d",
"Created":1364102658, "Created":1364102658,
"Size":24653, "Size":24653,
@ -545,9 +545,9 @@ List Images
"d6434d954665" -> "d82cbacda43a" "d6434d954665" -> "d82cbacda43a"
base -> "e9aa60c60128" [style=invis] base -> "e9aa60c60128" [style=invis]
"074be284591f" -> "f71189fff3de" "074be284591f" -> "f71189fff3de"
"b750fe79269d" [label="b750fe79269d\nbase",shape=box,fillcolor="paleturquoise",style="filled,rounded"]; "b750fe79269d" [label="b750fe79269d\nubuntu",shape=box,fillcolor="paleturquoise",style="filled,rounded"];
"e9aa60c60128" [label="e9aa60c60128\nbase2",shape=box,fillcolor="paleturquoise",style="filled,rounded"]; "e9aa60c60128" [label="e9aa60c60128\ncentos",shape=box,fillcolor="paleturquoise",style="filled,rounded"];
"9a33b36209ed" [label="9a33b36209ed\ntest",shape=box,fillcolor="paleturquoise",style="filled,rounded"]; "9a33b36209ed" [label="9a33b36209ed\nfedora",shape=box,fillcolor="paleturquoise",style="filled,rounded"];
base [style=invisible] base [style=invisible]
} }
@ -568,7 +568,7 @@ Create an image
.. sourcecode:: http .. sourcecode:: http
POST /images/create?fromImage=base HTTP/1.1 POST /images/create?fromImage=ubuntu HTTP/1.1
**Example response**: **Example response**:
@ -591,8 +591,8 @@ Create an image
:statuscode 500: server error :statuscode 500: server error
Insert a file in a image Insert a file in an image
************************ *************************
.. http:post:: /images/(name)/insert .. http:post:: /images/(name)/insert
@ -631,7 +631,7 @@ Inspect an image
.. sourcecode:: http .. sourcecode:: http
GET /images/base/json HTTP/1.1 GET /images/centos/json HTTP/1.1
**Example response**: **Example response**:
@ -661,7 +661,7 @@ Inspect an image
"Env":null, "Env":null,
"Cmd": ["/bin/bash"] "Cmd": ["/bin/bash"]
,"Dns":null, ,"Dns":null,
"Image":"base", "Image":"centos",
"Volumes":null, "Volumes":null,
"VolumesFrom":"" "VolumesFrom":""
}, },
@ -684,7 +684,7 @@ Get the history of an image
.. sourcecode:: http .. sourcecode:: http
GET /images/base/history HTTP/1.1 GET /images/fedora/history HTTP/1.1
**Example response**: **Example response**:
@ -696,7 +696,7 @@ Get the history of an image
[ [
{ {
"Id":"b750fe79269d", "Id":"b750fe79269d",
"Tag":["base:latest"], "Tag":["ubuntu:latest"],
"Created":1364102658, "Created":1364102658,
"CreatedBy":"/bin/bash" "CreatedBy":"/bin/bash"
}, },

View File

@ -49,7 +49,7 @@ List containers
[ [
{ {
"Id": "8dfafdbc3a40", "Id": "8dfafdbc3a40",
"Image": "base:latest", "Image": "ubuntu:latest",
"Command": "echo 1", "Command": "echo 1",
"Created": 1367854155, "Created": 1367854155,
"Status": "Exit 0", "Status": "Exit 0",
@ -59,7 +59,7 @@ List containers
}, },
{ {
"Id": "9cd87474be90", "Id": "9cd87474be90",
"Image": "base:latest", "Image": "ubuntu:latest",
"Command": "echo 222222", "Command": "echo 222222",
"Created": 1367854155, "Created": 1367854155,
"Status": "Exit 0", "Status": "Exit 0",
@ -69,7 +69,7 @@ List containers
}, },
{ {
"Id": "3176a2479c92", "Id": "3176a2479c92",
"Image": "base:latest", "Image": "centos:latest",
"Command": "echo 3333333333333333", "Command": "echo 3333333333333333",
"Created": 1367854154, "Created": 1367854154,
"Status": "Exit 0", "Status": "Exit 0",
@ -79,7 +79,7 @@ List containers
}, },
{ {
"Id": "4cb07b47f9fb", "Id": "4cb07b47f9fb",
"Image": "base:latest", "Image": "fedora:latest",
"Command": "echo 444444444444444444444444444444444", "Command": "echo 444444444444444444444444444444444",
"Created": 1367854152, "Created": 1367854152,
"Status": "Exit 0", "Status": "Exit 0",
@ -130,7 +130,7 @@ Create a container
"date" "date"
], ],
"Dns":null, "Dns":null,
"Image":"base", "Image":"ubuntu",
"Volumes":{}, "Volumes":{},
"VolumesFrom":"" "VolumesFrom":""
} }
@ -196,7 +196,7 @@ Inspect a container
"date" "date"
], ],
"Dns": null, "Dns": null,
"Image": "base", "Image": "ubuntu",
"Volumes": {}, "Volumes": {},
"VolumesFrom": "" "VolumesFrom": ""
}, },
@ -550,16 +550,16 @@ List Images
[ [
{ {
"Repository":"base", "Repository":"ubuntu",
"Tag":"ubuntu-12.10", "Tag":"precise",
"Id":"b750fe79269d", "Id":"b750fe79269d",
"Created":1364102658, "Created":1364102658,
"Size":24653, "Size":24653,
"VirtualSize":180116135 "VirtualSize":180116135
}, },
{ {
"Repository":"base", "Repository":"ubuntu",
"Tag":"ubuntu-quantal", "Tag":"12.04",
"Id":"b750fe79269d", "Id":"b750fe79269d",
"Created":1364102658, "Created":1364102658,
"Size":24653, "Size":24653,
@ -593,9 +593,9 @@ List Images
"d6434d954665" -> "d82cbacda43a" "d6434d954665" -> "d82cbacda43a"
base -> "e9aa60c60128" [style=invis] base -> "e9aa60c60128" [style=invis]
"074be284591f" -> "f71189fff3de" "074be284591f" -> "f71189fff3de"
"b750fe79269d" [label="b750fe79269d\nbase",shape=box,fillcolor="paleturquoise",style="filled,rounded"]; "b750fe79269d" [label="b750fe79269d\nubuntu",shape=box,fillcolor="paleturquoise",style="filled,rounded"];
"e9aa60c60128" [label="e9aa60c60128\nbase2",shape=box,fillcolor="paleturquoise",style="filled,rounded"]; "e9aa60c60128" [label="e9aa60c60128\ncentos",shape=box,fillcolor="paleturquoise",style="filled,rounded"];
"9a33b36209ed" [label="9a33b36209ed\ntest",shape=box,fillcolor="paleturquoise",style="filled,rounded"]; "9a33b36209ed" [label="9a33b36209ed\nfedora",shape=box,fillcolor="paleturquoise",style="filled,rounded"];
base [style=invisible] base [style=invisible]
} }
@ -616,7 +616,7 @@ Create an image
.. sourcecode:: http .. sourcecode:: http
POST /images/create?fromImage=base HTTP/1.1 POST /images/create?fromImage=ubuntu HTTP/1.1
**Example response**: **Example response**:
@ -639,8 +639,8 @@ Create an image
:statuscode 500: server error :statuscode 500: server error
Insert a file in a image Insert a file in an image
************************ *************************
.. http:post:: /images/(name)/insert .. http:post:: /images/(name)/insert
@ -679,7 +679,7 @@ Inspect an image
.. sourcecode:: http .. sourcecode:: http
GET /images/base/json HTTP/1.1 GET /images/centos/json HTTP/1.1
**Example response**: **Example response**:
@ -709,7 +709,7 @@ Inspect an image
"Env":null, "Env":null,
"Cmd": ["/bin/bash"] "Cmd": ["/bin/bash"]
,"Dns":null, ,"Dns":null,
"Image":"base", "Image":"centos",
"Volumes":null, "Volumes":null,
"VolumesFrom":"" "VolumesFrom":""
}, },
@ -732,7 +732,7 @@ Get the history of an image
.. sourcecode:: http .. sourcecode:: http
GET /images/base/history HTTP/1.1 GET /images/fedora/history HTTP/1.1
**Example response**: **Example response**:

View File

@ -46,7 +46,7 @@ List containers
[ [
{ {
"Id": "8dfafdbc3a40", "Id": "8dfafdbc3a40",
"Image": "base:latest", "Image": "ubuntu:latest",
"Command": "echo 1", "Command": "echo 1",
"Created": 1367854155, "Created": 1367854155,
"Status": "Exit 0", "Status": "Exit 0",
@ -56,7 +56,7 @@ List containers
}, },
{ {
"Id": "9cd87474be90", "Id": "9cd87474be90",
"Image": "base:latest", "Image": "ubuntu:latest",
"Command": "echo 222222", "Command": "echo 222222",
"Created": 1367854155, "Created": 1367854155,
"Status": "Exit 0", "Status": "Exit 0",
@ -66,7 +66,7 @@ List containers
}, },
{ {
"Id": "3176a2479c92", "Id": "3176a2479c92",
"Image": "base:latest", "Image": "centos:latest",
"Command": "echo 3333333333333333", "Command": "echo 3333333333333333",
"Created": 1367854154, "Created": 1367854154,
"Status": "Exit 0", "Status": "Exit 0",
@ -76,7 +76,7 @@ List containers
}, },
{ {
"Id": "4cb07b47f9fb", "Id": "4cb07b47f9fb",
"Image": "base:latest", "Image": "fedora:latest",
"Command": "echo 444444444444444444444444444444444", "Command": "echo 444444444444444444444444444444444",
"Created": 1367854152, "Created": 1367854152,
"Status": "Exit 0", "Status": "Exit 0",
@ -128,7 +128,7 @@ Create a container
"date" "date"
], ],
"Dns":null, "Dns":null,
"Image":"base", "Image":"ubuntu",
"Volumes":{}, "Volumes":{},
"VolumesFrom":"", "VolumesFrom":"",
"WorkingDir":"" "WorkingDir":""
@ -196,7 +196,7 @@ Inspect a container
"date" "date"
], ],
"Dns": null, "Dns": null,
"Image": "base", "Image": "ubuntu",
"Volumes": {}, "Volumes": {},
"VolumesFrom": "", "VolumesFrom": "",
"WorkingDir":"" "WorkingDir":""
@ -592,16 +592,16 @@ List Images
[ [
{ {
"Repository":"base", "Repository":"ubuntu",
"Tag":"ubuntu-12.10", "Tag":"precise",
"Id":"b750fe79269d", "Id":"b750fe79269d",
"Created":1364102658, "Created":1364102658,
"Size":24653, "Size":24653,
"VirtualSize":180116135 "VirtualSize":180116135
}, },
{ {
"Repository":"base", "Repository":"ubuntu",
"Tag":"ubuntu-quantal", "Tag":"12.04",
"Id":"b750fe79269d", "Id":"b750fe79269d",
"Created":1364102658, "Created":1364102658,
"Size":24653, "Size":24653,
@ -635,9 +635,9 @@ List Images
"d6434d954665" -> "d82cbacda43a" "d6434d954665" -> "d82cbacda43a"
base -> "e9aa60c60128" [style=invis] base -> "e9aa60c60128" [style=invis]
"074be284591f" -> "f71189fff3de" "074be284591f" -> "f71189fff3de"
"b750fe79269d" [label="b750fe79269d\nbase",shape=box,fillcolor="paleturquoise",style="filled,rounded"]; "b750fe79269d" [label="b750fe79269d\nubuntu",shape=box,fillcolor="paleturquoise",style="filled,rounded"];
"e9aa60c60128" [label="e9aa60c60128\nbase2",shape=box,fillcolor="paleturquoise",style="filled,rounded"]; "e9aa60c60128" [label="e9aa60c60128\ncentos",shape=box,fillcolor="paleturquoise",style="filled,rounded"];
"9a33b36209ed" [label="9a33b36209ed\ntest",shape=box,fillcolor="paleturquoise",style="filled,rounded"]; "9a33b36209ed" [label="9a33b36209ed\nfedora",shape=box,fillcolor="paleturquoise",style="filled,rounded"];
base [style=invisible] base [style=invisible]
} }
@ -658,7 +658,7 @@ Create an image
.. sourcecode:: http .. sourcecode:: http
POST /images/create?fromImage=base HTTP/1.1 POST /images/create?fromImage=ubuntu HTTP/1.1
**Example response**: **Example response**:
@ -721,7 +721,7 @@ Inspect an image
.. sourcecode:: http .. sourcecode:: http
GET /images/base/json HTTP/1.1 GET /images/centos/json HTTP/1.1
**Example response**: **Example response**:
@ -751,7 +751,7 @@ Inspect an image
"Env":null, "Env":null,
"Cmd": ["/bin/bash"] "Cmd": ["/bin/bash"]
,"Dns":null, ,"Dns":null,
"Image":"base", "Image":"centos",
"Volumes":null, "Volumes":null,
"VolumesFrom":"", "VolumesFrom":"",
"WorkingDir":"" "WorkingDir":""
@ -776,7 +776,7 @@ Get the history of an image
.. sourcecode:: http .. sourcecode:: http
GET /images/base/history HTTP/1.1 GET /images/fedora/history HTTP/1.1
**Example response**: **Example response**:
@ -1126,10 +1126,10 @@ Monitor Docker's events
HTTP/1.1 200 OK HTTP/1.1 200 OK
Content-Type: application/json Content-Type: application/json
{"status":"create","id":"dfdf82bd3881","from":"base:latest","time":1374067924} {"status":"create","id":"dfdf82bd3881","from":"ubuntu:latest","time":1374067924}
{"status":"start","id":"dfdf82bd3881","from":"base:latest","time":1374067924} {"status":"start","id":"dfdf82bd3881","from":"ubuntu:latest","time":1374067924}
{"status":"stop","id":"dfdf82bd3881","from":"base:latest","time":1374067966} {"status":"stop","id":"dfdf82bd3881","from":"ubuntu:latest","time":1374067966}
{"status":"destroy","id":"dfdf82bd3881","from":"base:latest","time":1374067970} {"status":"destroy","id":"dfdf82bd3881","from":"ubuntu:latest","time":1374067970}
:query since: timestamp used for polling :query since: timestamp used for polling
:statuscode 200: no error :statuscode 200: no error

View File

@ -46,7 +46,7 @@ List containers
[ [
{ {
"Id": "8dfafdbc3a40", "Id": "8dfafdbc3a40",
"Image": "base:latest", "Image": "ubuntu:latest",
"Command": "echo 1", "Command": "echo 1",
"Created": 1367854155, "Created": 1367854155,
"Status": "Exit 0", "Status": "Exit 0",
@ -56,7 +56,7 @@ List containers
}, },
{ {
"Id": "9cd87474be90", "Id": "9cd87474be90",
"Image": "base:latest", "Image": "ubuntu:latest",
"Command": "echo 222222", "Command": "echo 222222",
"Created": 1367854155, "Created": 1367854155,
"Status": "Exit 0", "Status": "Exit 0",
@ -66,7 +66,7 @@ List containers
}, },
{ {
"Id": "3176a2479c92", "Id": "3176a2479c92",
"Image": "base:latest", "Image": "centos:latest",
"Command": "echo 3333333333333333", "Command": "echo 3333333333333333",
"Created": 1367854154, "Created": 1367854154,
"Status": "Exit 0", "Status": "Exit 0",
@ -76,7 +76,7 @@ List containers
}, },
{ {
"Id": "4cb07b47f9fb", "Id": "4cb07b47f9fb",
"Image": "base:latest", "Image": "fedora:latest",
"Command": "echo 444444444444444444444444444444444", "Command": "echo 444444444444444444444444444444444",
"Created": 1367854152, "Created": 1367854152,
"Status": "Exit 0", "Status": "Exit 0",
@ -128,7 +128,7 @@ Create a container
"date" "date"
], ],
"Dns":null, "Dns":null,
"Image":"base", "Image":"ubuntu",
"Volumes":{}, "Volumes":{},
"VolumesFrom":"", "VolumesFrom":"",
"WorkingDir":"" "WorkingDir":""
@ -196,7 +196,7 @@ Inspect a container
"date" "date"
], ],
"Dns": null, "Dns": null,
"Image": "base", "Image": "ubuntu",
"Volumes": {}, "Volumes": {},
"VolumesFrom": "", "VolumesFrom": "",
"WorkingDir":"" "WorkingDir":""
@ -591,16 +591,16 @@ List Images
[ [
{ {
"Repository":"base", "Repository":"ubuntu",
"Tag":"ubuntu-12.10", "Tag":"precise",
"Id":"b750fe79269d", "Id":"b750fe79269d",
"Created":1364102658, "Created":1364102658,
"Size":24653, "Size":24653,
"VirtualSize":180116135 "VirtualSize":180116135
}, },
{ {
"Repository":"base", "Repository":"ubuntu",
"Tag":"ubuntu-quantal", "Tag":"12.04",
"Id":"b750fe79269d", "Id":"b750fe79269d",
"Created":1364102658, "Created":1364102658,
"Size":24653, "Size":24653,
@ -634,9 +634,9 @@ List Images
"d6434d954665" -> "d82cbacda43a" "d6434d954665" -> "d82cbacda43a"
base -> "e9aa60c60128" [style=invis] base -> "e9aa60c60128" [style=invis]
"074be284591f" -> "f71189fff3de" "074be284591f" -> "f71189fff3de"
"b750fe79269d" [label="b750fe79269d\nbase",shape=box,fillcolor="paleturquoise",style="filled,rounded"]; "b750fe79269d" [label="b750fe79269d\nubuntu",shape=box,fillcolor="paleturquoise",style="filled,rounded"];
"e9aa60c60128" [label="e9aa60c60128\nbase2",shape=box,fillcolor="paleturquoise",style="filled,rounded"]; "e9aa60c60128" [label="e9aa60c60128\ncentos",shape=box,fillcolor="paleturquoise",style="filled,rounded"];
"9a33b36209ed" [label="9a33b36209ed\ntest",shape=box,fillcolor="paleturquoise",style="filled,rounded"]; "9a33b36209ed" [label="9a33b36209ed\nfedora",shape=box,fillcolor="paleturquoise",style="filled,rounded"];
base [style=invisible] base [style=invisible]
} }
@ -657,7 +657,7 @@ Create an image
.. sourcecode:: http .. sourcecode:: http
POST /images/create?fromImage=base HTTP/1.1 POST /images/create?fromImage=ubuntu HTTP/1.1
**Example response**: **Example response**:
@ -724,7 +724,7 @@ Inspect an image
.. sourcecode:: http .. sourcecode:: http
GET /images/base/json HTTP/1.1 GET /images/centos/json HTTP/1.1
**Example response**: **Example response**:
@ -754,7 +754,7 @@ Inspect an image
"Env":null, "Env":null,
"Cmd": ["/bin/bash"] "Cmd": ["/bin/bash"]
,"Dns":null, ,"Dns":null,
"Image":"base", "Image":"centos",
"Volumes":null, "Volumes":null,
"VolumesFrom":"", "VolumesFrom":"",
"WorkingDir":"" "WorkingDir":""
@ -778,7 +778,7 @@ Get the history of an image
.. sourcecode:: http .. sourcecode:: http
GET /images/base/history HTTP/1.1 GET /images/fedora/history HTTP/1.1
**Example response**: **Example response**:
@ -1131,10 +1131,10 @@ Monitor Docker's events
HTTP/1.1 200 OK HTTP/1.1 200 OK
Content-Type: application/json Content-Type: application/json
{"status":"create","id":"dfdf82bd3881","from":"base:latest","time":1374067924} {"status":"create","id":"dfdf82bd3881","from":"ubuntu:latest","time":1374067924}
{"status":"start","id":"dfdf82bd3881","from":"base:latest","time":1374067924} {"status":"start","id":"dfdf82bd3881","from":"ubuntu:latest","time":1374067924}
{"status":"stop","id":"dfdf82bd3881","from":"base:latest","time":1374067966} {"status":"stop","id":"dfdf82bd3881","from":"ubuntu:latest","time":1374067966}
{"status":"destroy","id":"dfdf82bd3881","from":"base:latest","time":1374067970} {"status":"destroy","id":"dfdf82bd3881","from":"ubuntu:latest","time":1374067970}
:query since: timestamp used for polling :query since: timestamp used for polling
:statuscode 200: no error :statuscode 200: no error

View File

@ -541,10 +541,11 @@ Search
Content-Type: application/json Content-Type: application/json
{"query":"search_term", {"query":"search_term",
"num_results": 2, "num_results": 3,
"results" : [ "results" : [
{"name": "dotcloud/base", "description": "A base ubuntu64 image..."}, {"name": "ubuntu", "description": "An ubuntu image..."},
{"name": "base2", "description": "A base ubuntu64 image..."}, {"name": "centos", "description": "A centos image..."},
{"name": "fedora", "description": "A fedora image..."}
] ]
} }

View File

@ -47,7 +47,7 @@ The password is 'screencast'
# I had it so it was quick # I had it so it was quick
# now let's connect using -i for interactive and with -t for terminal # now let's connect using -i for interactive and with -t for terminal
# we execute /bin/bash to get a prompt. # we execute /bin/bash to get a prompt.
$ docker run -i -t base /bin/bash $ docker run -i -t ubuntu /bin/bash
# yes! we are in! # yes! we are in!
# now lets install openssh # now lets install openssh
$ apt-get update $ apt-get update

View File

@ -37,7 +37,5 @@ There are more example scripts for creating base images in the
Docker Github Repo: Docker Github Repo:
* `BusyBox <https://github.com/dotcloud/docker/blob/master/contrib/mkimage-busybox.sh>`_ * `BusyBox <https://github.com/dotcloud/docker/blob/master/contrib/mkimage-busybox.sh>`_
* `CentOS
<https://github.com/dotcloud/docker/blob/master/contrib/mkimage-centos.sh>`_
* `Debian * `Debian
<https://github.com/dotcloud/docker/blob/master/contrib/mkimage-debian.sh>`_ <https://github.com/dotcloud/docker/blob/master/contrib/mkimage-debian.sh>`_