Summary
This chapter covered the life cycle of Docker containers and various events. It compared stateful and stateless applications and how each one saves its data. If we need the data to be persistent, we should use volumes. The chapter covered the creation and management of a volume. It further discussed the different types of volumes, as well as the difference between the usage of volumes and the filesystem, and how the data in both is affected when the container is committed to a new image.
In the next chapter, you will learn about the concepts of continuous integration and continuous delivery. You will learn how to integrate GitHub, Jenkins, Docker Hub, and SonarQube to publish your images automatically to the registry to be ready for production.