Loading tutorials
docker run works for you. It also assumes you know what images and containers are and what a TCP port is. The previous chapter explained why a container's ports are closed to the host by default. This chapter shows the flag that opens one.2 min readdocker run, you know that -p HOST:CONTAINER publishes a port, and you know what localhost and a network interface are. You will learn how to choose which host address accepts connections for a published port.3 min readdocker run, know what a container port and a host port are, and have seen -p HOST:CONTAINER before. Here you will learn how the protocol suffix works and what goes wrong when you forget it.2 min read-p HOST:CONTAINER works from the previous chapters. Here you will see what the EXPOSE instruction does, and what it doesn't do.2 min readdocker run, know what an image and a container are, and understand TCP ports and localhost. You should also know that -p HOST:CONTAINER publishes one port, as covered earlier in this tutorial.3 min readdocker run, know what a container and an image are, and understand TCP ports and localhost. It covers the most common reasons a published port gives no answer, and how to find which one you have.3 min readdocker run, know what an image and a container are, and are comfortable in a shell. It covers the -e flag: how to set a variable, how to copy one from your shell, and what happens when the image already defines the same name.2 min readdocker run, know what an environment variable is, and have used -e NAME=value to set one. Here you will learn the second form of -e, which takes a variable's value from your shell instead of writing it on the command line.3 min readdocker run, know what an environment variable is, and have used -e to set one. You will move a group of variables out of the command line and into a file.2 min readdocker run, and set a variable with -e. You should also know what an environment variable is: a name and value pair that a process reads at start-up.3 min readdocker run -e and --env-file, and that you know the difference between an image and a container. It explains why a password passed as an environment variable is easy to expose, and what to use instead.3 min read-p publishes a port, how -e and --env-file set variables, and that a run-time -e value overrides an image ENV default. You also need Docker installed and a basic idea of TCP ports and localhost.3 min read