Stop using dockerfile/* images

As per
http://blog.docker.com/2015/03/updates-available-to-popular-repos-update-your-images/
docker has stopped answering dockerfile/redis and dockerfile/nginx.  Fix all
users in our tree.  Sadly this means a lot of published examples are now broken.
This commit is contained in:
Tim Hockin
2015-04-16 09:11:47 -07:00
parent 6c394e4d81
commit c2bacd588d
48 changed files with 119 additions and 103 deletions

View File

@@ -7,7 +7,7 @@ desiredState:
id: redis-master
containers:
- name: "master"
image: "dockerfile/redis"
image: "redis"
command: "this is a bad command"
labels:
name: "redis-master"

View File

@@ -8,7 +8,7 @@
"id": "redis-master",
"containers": [{
"name": "master",
"image": "dockerfile/redis",
"image": "redis",
"command": "this is a bad command"
}]
}

View File

@@ -7,7 +7,7 @@ desiredState:
id: redis-master
containers:
- name: "master"
image: "dockerfile/redis"
image: "redis"
command:
- this
- is

View File

@@ -7,5 +7,5 @@ metadata:
spec:
containers:
- args: "this is a bad command"
image: dockerfile/redis
image: redis
name: master

View File

@@ -11,7 +11,7 @@
"containers": [
{
"name": "master",
"image": "dockerfile/redis",
"image": "redis",
"args": "this is a bad command"
}
]

View File

@@ -12,5 +12,5 @@ spec:
- an
- ok
- command
image: dockerfile/redis
image: redis
name: master

View File

@@ -42,7 +42,7 @@
"version": "v1beta1",
"containers": [{
"name": "master",
"image": "dockerfile/redis",
"image": "redis",
"env": [
{
"name": "REDIS_PASSWORD",

View File

@@ -30,16 +30,16 @@ const (
run_long = `Create and run a particular image, possibly replicated.
Creates a replication controller to manage the created container(s).`
run_example = `// Starts a single instance of nginx.
$ kubectl run-container nginx --image=dockerfile/nginx
$ kubectl run-container nginx --image=nginx
// Starts a replicated instance of nginx.
$ kubectl run-container nginx --image=dockerfile/nginx --replicas=5
$ kubectl run-container nginx --image=nginx --replicas=5
// Dry run. Print the corresponding API objects without creating them.
$ kubectl run-container nginx --image=dockerfile/nginx --dry-run
$ kubectl run-container nginx --image=nginx --dry-run
// Start a single instance of nginx, but overload the desired state with a partial set of values parsed from JSON.
$ kubectl run-container nginx --image=dockerfile/nginx --overrides='{ "apiVersion": "v1beta1", "desiredState": { ... } }'`
$ kubectl run-container nginx --image=nginx --overrides='{ "apiVersion": "v1beta1", "desiredState": { ... } }'`
)
func NewCmdRunContainer(f *cmdutil.Factory, out io.Writer) *cobra.Command {