You may have an impression, that there is a huge flexibility when it comes to running Docker containers. And you are right, definitely there is much we can do. We can override the images RUN
, CMD
, ENTRYPOINT
instructions to change the container run behavior, sometimes even totally change the container's purpose if needed. Docker provides a lot of powerful commands to inspect the container runtime state, viewing logs, events and statistics. They surely make devop's daily job a lot easier. Also, setting the container restart policies and runtime constraints on CPU or memory can result of run-and-forget way of working with Docker containers. If you need your applications to scale easily, there is nothing simpler than bringing a Docker Swarm to life. Setting up Docker Swarm is easy, straightforward and flexible. Of course, detailed setup of a cluster may take some time, but running a basic cluster of Docker containers in seconds is possible.
Now that we know how to create images, how...