mirror of
https://github.com/containers/podman.git
synced 2025-05-22 01:27:07 +08:00
Update podman-kube-play.1.md.in
To avoid the error: `Error: unable to read YAML as Kube Pod: error unmarshaling JSON: while decoding JSON: json: cannot unmarshal object into Go struct field Container.spec.containers.command of type string` Also makes it easier to understand as you only need the image parameter. Signed-off-by: Daskan <kevin81991@web.de>
This commit is contained in:
@ -70,10 +70,7 @@ metadata:
|
|||||||
...
|
...
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- command:
|
- name: container
|
||||||
- top
|
|
||||||
- name: container
|
|
||||||
value: podman
|
|
||||||
image: foobar
|
image: foobar
|
||||||
...
|
...
|
||||||
```
|
```
|
||||||
@ -113,9 +110,7 @@ metadata:
|
|||||||
name: foobar
|
name: foobar
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- command:
|
- name: container-1
|
||||||
- top
|
|
||||||
name: container-1
|
|
||||||
image: foobar
|
image: foobar
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
@ -145,9 +140,7 @@ metadata:
|
|||||||
name: foobar
|
name: foobar
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- command:
|
- name: container-1
|
||||||
- top
|
|
||||||
name: container-1
|
|
||||||
image: foobar
|
image: foobar
|
||||||
env:
|
env:
|
||||||
- name: FOO
|
- name: FOO
|
||||||
|
Reference in New Issue
Block a user