How to increase container root volume size


I’m trying to load a large database dump in a mysql container but am running out of space, by the looks the container has 59GB available (I need about 100GB):

root@47d1fddfd3ed:/# df -h
Filesystem      Size  Used Avail Use% Mounted on
overlay          59G   18G   39G  31% /

In my Docker Desktop settings I have set Disk image size to 96 GB (55.2 GB used) under resources.

How do I increase the container root volume size? I created the container with a seperate volume for the mysql data:

docker run --detach --name mysql --publish 3306:3306 -v data:/data -v mysql-data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=password mysql:5.7

Just run command line Resize-VHD to increase the size (see