How Disk Partitions in Docker Container works using device mapper

How Disk Partitions in Docker Container works using device mapper?
How to configure the size of docker container?