Using containers isn't as intuitive as most of the tools that we're used to working with, so we'll need to change the way we work. In this section, we'll go through how to use Docker so that we're able to benefit from containers.
The life cycle of a container
The basics of Docker
When docker run alpine ls is executed, Docker carries out the following steps behind the scenes:
- It finds the alpine image locally. If this is not found, Docker will try to locate and pull it from the public Docker registry to the local image storage.
- It extracts the image and creates a container accordingly.
- It executes the entry point defined in the image with commands, which are the arguments after the image name. In this...