![]() ![]() ![]() The image defined by your Dockerfile should generate containers that are asĮphemeral as possible. General guidelines and recommendations Create ephemeral containers The running container, such as writing new files, modifying existing files, andĭeleting files, are written to this writable container layer.įor more on image layers (and how Docker builds and stores images), seeĪbout storage drivers. (the “container layer”) on top of the underlying layers. When you run an image and generate a container, you add a new writable layer CMD specifies what command to run within the container.COPY adds files from your Docker client’s current directory.FROM creates a layer from the ubuntu:18.04 Docker image.# syntax=docker/dockerfile:1 FROM ubuntu:18.04 COPY.
0 Comments
Leave a Reply. |