Since we will be using the run command a lot, we should take a look at that now. You have already used the run command in its most basic form:
# new syntax# Usage: docker container run [OPTIONS] IMAGE [COMMAND] [ARG...]docker container run hello-world# old syntaxdocker run hello-world
This command tells Docker that you want to run a container based on the image described as hello-world. You may be asking yourself, did the hello-world container image get installed when I installed Docker? The answer is no. The docker run command will look at the local container image cache to see whether there is a container image that matches the description of the requested container. If there is, Docker will run the container from ...