bookmark_borderCMD(args) vs ENTRYPOINT (command)

Introduction

Uses CMD OR ENTRYPOINT | ARGS OR COMMAND

CMD ENTRYPOINT

  • CMD sets default command and/or parameters, which can be overwritten from the command line when the docker container runs.
  • ENTRYPOINT command and parameters will not be overwritten from the command line. Instead, all command-line arguments will be added after ENTRYPOINT parameters.

Dockerfile vs Pod Definition File

DockerfilePod Definition File
ENTRYPOINT[“”]command[“”]
CMD[“”]args:[“”]
Dockerfile vs Pod Definition file
ANOTE.DEV