This chapter was dedicated to the Docker command line and running containers. We found a powerful command line that allowed us to create containers from image artifacts, share them between hosts, and execute the already built application components.
We learned how to interact with different Docker objects, as well as what kind of objects are available in standalone Docker host environments and what objects are available in orchestrated environments.
We then reviewed how containers can be created, executed, paused/unpaused, and stopped or killed. They will stay in our Docker host until they are removed from the system. We also learned how to manipulate the container's execution behavior and how they exist within the network. To improve security, we introduced a number of options and we also learned how executing containers in read-only mode can be very useful.
Limiting the container's resources is necessary for production. By default, they will be able to consume all...