Container Spec
name: the identifier of a container; a random id will be given if absentimage: in the form[registry]/image[:tag]; hyperctl will automatically pull the image if missingcommand: the shell command to run when the container startsentryPoint: the executable to run when the container startsThe
commandwill be appended toentryPointas parameters ifentryPointis not empty.
workdir: the directory running the container command[Deprecated]
ports: the exposed ports of the container, the ports now is move to the Pod levelcontainerPort: the listening port inside containerhostPort: the port exposed in host machineprotocol:tcp(default) orudp
volumes: volumes reference to be mounted in the container.path: the mount pointvolume: the name of the volume to be mounted, defined in volumes section, or specified indetail.readOnly: iftrue, the mount point will be read only, defaultfalsedetail: the volume spec. If the volume is defined involumessection of the pod, thedetailfield could leave null.
files: files reference to be present in the containertty: whether the stdio of the container is a tty device
example:
Last updated