April 2016
Intermediate to advanced
453 pages
7h 42m
English
© Deepak Vohra 2016
Deepak Vohra, Kubernetes Microservices with Docker, 10.1007/978-1-4842-1907-2_3
Deepak Vohra1
(1)White Rock, British Columbia, Canada
Kubernetes orchestrates Docker containers, and the instructions to run for a Docker image are specified in the Dockerfile. The ENTRYPOINT instruction specifies the command to run, and the CMD instruction specifies the default arguments for the ENTRYPOINT command. Kubernetes provides two fields, "Command" and "Args", to be specified for a container image in a Pod definition to override the default settings of ENTRYPOINT and CMD. We shall discuss these fields in this chapter. We shall also discuss using environment variables in a Pod definition’s ...
Read now
Unlock full access