4337 links
  • Arnaud's links
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
page 1 / 1
4 results tagged dockerfile x
  • Dockerfile RUN, CMD, ENTRYPOINT

    D'après la doc :

    don't confuse RUN with CMD.

    RUN actually runs a command and commits the result;

    CMD does not execute anything at build time, but specifies the intended command for the image.

    An ENTRYPOINT helps you to configure a container that you can run as an executable. That is, when you specify an ENTRYPOINT, then the whole container runs as if it was just that executable.

    Unlike the behavior of the CMD instruction, The ENTRYPOINT instruction adds an entry command that will not be overwritten when arguments are passed to docker run. This allows arguments to be passed to the entry point, i.e. docker run <image> -d will pass the -d argument to the entry point.

    You can specify parameters either in the ENTRYPOINT JSON array (as in "like an exec" above), or by using a CMD instruction. Parameters in the ENTRYPOINT instruction will not be overridden by the docker run arguments, but parameters specified via a CMD instruction will be overridden by docker run arguments.


    Le RUN sert à build l'image

    Le CMD et l'ENTRYPOINT servent au moment du docker run
    Donc au final, il vaut mieux avoir un ENTRYPOINT avec des paramètres qu'on ne peut pas écraser (non overridable)
    Pourquoi pas un CMD avec des paramètres par défauts overridable

    October 28, 2014 at 11:41:16 AM GMT+1 - permalink - archive.org - https://links.infomee.fr/?tKS8aQ
    docker dockerfile
  • Dockerfile - Docker Documentation
    October 28, 2014 at 11:25:46 AM GMT+1 - permalink - archive.org - https://docs.docker.com/reference/builder/
    docker dockerfile
  • Best practices for writing Dockerfiles - Docker Documentation
    October 28, 2014 at 10:35:09 AM GMT+1 - permalink - archive.org - https://docs.docker.com/articles/dockerfile_best-practices/
    docker dockerfile
  • Dockerfile - Docker Documentation
    October 28, 2014 at 10:35:00 AM GMT+1 - permalink - archive.org - http://docs.docker.com/reference/builder/#run
    docker dockerfile
Links per page: 20 50 100
page 1 / 1
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Help/documentation