You have created a VM, deployed your services in Docker on it, services (for example, Kafka + Kafka Connect) started writing data.
Suddenly you find that the disk volume is running out.
df -h
What to do? How to migrate Docker Volumes and avoid the Disk full error?
- Add a new Filesystem with enough space
- Stop containers
- Disable Docker services
- Unmount docker overlay filesystems
- Move data to the new partition
- Make changes to the Docker daemon.json configuration file
- Enable Docker services
- Start containers