Loading tutorials
docker version runs without errors. You should know in general terms what a container is. You should also be able to run a small program, such as a Node.js script, on your own machine. No earlier Docker experience is ne3 min readdocker build and docker run, and that you know an image is built from a Dockerfile. It explains what Docker sends to the builder when you build, and why that matters for COPY.3 min readdocker commands, know that a container is a running instance of an image, and have read the earlier chapters on Dockerfile anatomy and the build context. It covers the first instruction in nearly every Dockerfile: FROM.3 min readdocker build sends a build context to the builder, and have a Node.js or similar project to practice with. Three instructions shape the filesystem inside your image: WORKDIR picks a directory, COPY brings files in, and RUN execu2 min readFROM, WORKDIR, COPY, and RUN, and that you can run docker build and docker run. It covers the two instructions that carry configuration: ARG for build time and ENV for build time and run time.3 min readFROM, COPY, and RUN, and that you can run docker build and docker run.3 min readdocker commands, have a working Dockerfile, and know what an image and a container are. You will build an image, tag it, run it, and fix the errors people hit most often.3 min readdocker build and docker run. It also assumes you know what the build context is. Here you will learn how Docker decides to reuse work from earlier builds, and how to order instructions so rebuilds take seconds instead of minutes.3 min readdocker build, know that COPY reads files from the build context, and understand that each instruction creates a cached layer. Here you will use a .dockerignore file to control which files enter the context.3 min readdocker build, and understand layers and the build cache from the earlier chapters. It covers how to split a build into stages so the final image contains only what the app needs at run time.3 min readCOPY. It covers why containers should not run as root and how to set that up.3 min readEXPOSE and HEALTHCHECK. It assumes you can write a basic Dockerfile, build an image, and start a container with docker run -p.3 min readdocker build in current Docker releases. It adds mounts that last only for a single RUN instruction. This chapter covers two of them: cache moun3 min read