Working with containers without volumes is only half of the story of what Docker is capable of doing, and when throwing the Docker module for Ansible, there are a few more things to learn.
Docker Volumes
Manage Volumes With Docker CLI
Throughout this blog post, we will explore how to manage volumes with the Docker CLI. When you use Docker for development and testing purposes, it can be helpful to have a persistent volume so that you don’t lose your work when the container is destroyed or stopped.
Check Docker Container Volume Size
When running storage volumes inside Docker containers, we can check the size of the volumes our containers are using.
Overview of Storage in Docker Containers
In a Docker container, the storage is provided to each process as a virtualized block device. All containers share this same storage resource from their host machine.