Loading tutorials
docker run. You should be comfortable with basic command-line use and know what a container is. You do not need to have written a Dockerfile before.3 min readdocker run, use a terminal, and know what a container is. You will write a Dockerfile for a small Python app and learn what each of the four core instructions does to the image.3 min readdocker run. It explains what the build context is, how it affects your build, and how .dockerignore keeps unneeded files out of it.3 min readdocker build command: what it takes as input, how to point it at the right files, and the errors you will meet most often.2 min readdocker build with a build context. It covers how an image name is structured and how the -t flag applies names and tags.3 min readdocker build -t, and know that an image is a stack of layers. After a build, three commands tell you what you got: docker image ls, docker history, and docker image inspect.2 min readdocker build with a context, and tag an image with -t. You should also know that an image is a stack of layers.3 min readdocker build and docker run. It covers how an image decides what to run when a container starts.2 min readdocker build with a context and -t, and know that each instruction creates a layer. Here you will pass values into a build and learn how ARG differs from ENV.2 min readFROM, WORKDIR, COPY, and RUN, and that you know how layers and the build cache work. It covers how to use several stages in one Dockerfile to produce a smaller final image.3 min readdocker build -t, that you know an image has a repository name and a tag, and that you have an account on a registry. A registry is a server that stores images and serves them to other machines.2 min readdocker build -t, and that you know how to retag and push an image to a registry. Here you decide which tags to publish and how to refer to an image so that deployments stay predictable.3 min readdocker build with -t, and that you know what image layers and the build cache are. Here you will see which engine runs your builds and how docker buildx gives you access to its extra features.2 min readdocker build, and know that each instruction creates an image layer. It also assumes you know that BuildKit is the modern build engine behind docker build.3 min readdocker build, and push a tagged image to a registry. It also assumes you know what BuildKit and docker buildx are from the previous chapters.3 min read