Docker Community Forums

Share and learn in the Docker community.

How to limit the size of container root volume?


(Kobeever2008) #1

Expected behavior

When start container, there should be an option to set the root volume size

Actual behavior

The container starts up with the root volume has the same size as host

Information

If I keep generate random file under c:\ inside container, it will take all host disk space. Need an approach to prevent this.


(Mario Pietsch) #2

Hyper-V-Manager program should be able to set the HD size?!