thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

DevOps & Automation · Intermediate

ENTRYPOINT

A Dockerfile instruction defining the executable that always runs when a container starts; CMD supplies default arguments.

Definition

With exec form (JSON array), ENTRYPOINT sets the main process and CMD provides overridable defaults. docker run arguments replace CMD; --entrypoint overrides ENTRYPOINT. In Kubernetes, command overrides ENTRYPOINT and args overrides CMD.

Example

ENTRYPOINT ["ping"] CMD ["8.8.8.8"] runs ping 8.8.8.8 unless another host is passed.

Exam tip

Kubernetes mapping: command = ENTRYPOINT, args = CMD. This is a frequent CKAD trap.

Related terms