#20 Docker Tutorial | Dockerfile Run

preview_player
Показать описание
Docker playlist

Dockerfile Keywords(LABEL, ENV, RUN, WORKDIR)

1.RUN: The RUN instruction will execute any commands in a new layer on top of the current image and commit the result.

2.ENV: The ENV instruction sets the environment variable key to the value. The value will be in the environment for all subsequent instructions in the build stage and can be replaced inline in many as well.

3.LABEL: The LABEL instruction adds metadata to an image. A label is a key-value pair. To include spaces within a LABEL value, use quotes and backslashes as you would in command-line parsing.

4.WORKDIR: the WORKDIR instruction sets the working directory for any RUN, CMD, ENTRYPOINT, COPY, and ADD instructions that follow it in the Dockerfile. If the WORKDIR doesn't exist, it will be created even if it's not used in any subsequent Dockerfile instruction.
--------------------------------------
LABEL name="suraj kelhe"

ENV NAME suraj
ENV PASS password

RUN cd /tmp/

WORKDIR /tmp/
-------------------------------
To support us
Like , Share, Subscribe

#dockerfile
#devops
Рекомендации по теме