![]() Let’s now look at how we can fashion our Dockerfiles to save time when developing images and pulling containers. ![]() VOLUME - creates a directory mount point to access and store persistent data. ENTRYPOINT - provides command and arguments for an executing container. ARG - defines a variable to pass to Docker at build-time. WORKDIR - sets the working directory for the instructions that follow. CMD - provides a command and arguments for an executing container. ADD - copies files and directories to the container. COPY - copies files and directories to the container. Used to install packages into containers. RUN -runs a command and creates an image layer. ENV - sets a persistent environment variable. FROM - specifies the base (parent) image.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |