Sunday 15 April 2012

containers - Docker - Editing Mount Options -


I am adding disk quota to my Ubuntu dock container To add quotas support, edit the mount option and Usrquota is explained here like:

Usually you can edit / etc / fstab and add mount options.

My question, how would I add a mount option to the docking container?

You don actually do not mount the container disc anywhere to install quota in the Docker Container () There is a feature request for, so there is currently no easy way.

However, apparently there are some functions.

Use Device Mapper as a limit

Containers docking contain up to 10 GB of disk space, per container (which is the Deputy Mapper Store driver is by default).

So your best option is to replace the default value for new containers, but again, it is my understanding that you will need to recreate the containers

Therefore, if you 5 gigabytes, you will write

  Docker-D - store-op dm.basesize = 5G  

Assign UserAud (and of course, run the command with that account). On the host, we will use setquota to limit this userid .

Source


No comments:

Post a Comment