In questo documento ufficiale, è possibile eseguire il comando in un file di configurazione YAML:Come impostare più comandi in un file yaml con Kubernetes?
http://kubernetes.io/v1.1/docs/user-guide/configuring-containers.html
apiVersion: v1
kind: Pod
metadata:
name: hello-world
spec: # specification of the pod’s contents
restartPolicy: Never
containers:
- name: hello
image: "ubuntu:14.04"
env:
- name: MESSAGE
value: "hello world"
command: ["/bin/sh","-c"]
args: ["/bin/echo \"${MESSAGE}\""]
Se voglio correre più di un comando, come fare?
Sì, molto valido, tuttavia, penso che ci siano anche buoni casi d'uso per estendere 'comando' come sovrascrive il' Entrypoint 'del Dockerfile;) –