What is the ENTRYPOINT instruction good for in Docker?
Experience Level: Senior
Tags: Docker
Answer
The ENTRYPOINT instruction defines what process will be executed in a container after it gets created.
Example:
ENTRYPOINT ["top", "-b"]
Related Docker job interview questions
Will the variables set using the ENV instruction in a Dockerfile be persisted in the built image?
Docker SeniorWhat is the ENV instruction good for in Docker?
Docker SeniorHow can you split a long RUN instruction on multiple lines in Dockerfile?
Docker SeniorWhat is the RUN instruction good for in Docker?
Docker SeniorAre ARG variables persisted into the built images in Docker?
Docker Senior