Docker: Container disk quotas
Fixed size storage volumes for the persistent data of a container: creation, usage, extension, backup and removal.
Back to Artica for Docker Edition
One runaway application should never fill the whole server.
Artica gives a container its own storage space of a fixed size.
When that space is full, only that application is affected and the rest of the appliance keeps running.

What it does
A quota volume is a virtual disk of fixed size, stored as a file on the appliance.
Artica formats it, mounts it and shows it inside the container at the folder you choose, for example /data.
The application writes its persistent data there and cannot write more than the size of the volume.
The volume has its own identity.
It survives the removal and the recreation of the container.
Benefits
- The size is reserved on the host when the volume is created.
A full volume returns "no space left" to that application only. - Removing a container never deletes its quota volume.
Deleting the data is a separate action, confirmed twice. - A volume can be extended at any time, without losing its content.
- An offline backup gives a consistent copy of the volume, to restore later.
- Artica starts a container only once its volume is really mounted.
The application never writes into the bare host folder by mistake.
Use cases
- A team application runs its own database.
Give the database folder a 10 GiB volume.
A table that grows out of control stops at 10 GiB instead of filling the appliance. - Several customers share one appliance.
Each customer application gets its own volume, so one customer's upload spree does not affect the others. - An application is about to be upgraded.
Stop it, take an offline backup of its volume, and restore it if the upgrade goes wrong.
What the quota covers
| Item | Counted in the quota |
|---|---|
Files written in the quota volume (for example /data) |
Yes |
| Docker image layers | No |
| The container's writable layer (files written outside the volume) | No |
| Container logs | No |
| Other volumes and temporary file systems | No |
The size of the volume is the size of the virtual disk.
The file system itself takes a small part of it, so the application sees slightly less free space.
The tab shows both figures.
Requirements
- The disk quota component enabled on the Docker Manager.
Appliances with a recent Artica REST API enable it. - Free space on the appliance for the full size of each volume, plus a reserve of 1 GiB.
Create a volume
- Open Docker > Containers and click the container.
- Open the Disk Quota tab.
- Click Create quota volume.
- Choose the Size (GiB), from 1 to 16384.
The default is 2 GiB. - Enter the Folder in the container where the application writes its data, for example
/var/lib/mysqlfor a database. - Set the File owner UID and File owner GID.
Keep 0 unless the application runs as a specific user, for example 999 for many database images. - Click Create quota volume.

Artica creates the volume and mounts it on the appliance.
Then attach it to the container: open the menu of the volume card and choose Attach by recreating container.
Attaching recreates the container.
The volume hides the files that the image already had in that folder.
Tick the acknowledgement that accepts the recreation, the interruption and the masking of these files.
Watch the usage
The tab shows:
- The space used, the space free and the percentage used.
- The number of files (inodes) and the space taken on the appliance.
- Whether the volume is mounted and attached.
- Its size, its folder in the container, its file owner and its automatic restarts.
The usage is sampled every minute.
The percentage turns orange at 80 % and red at 95 %.
Extend a volume
- Click Extend capacity.
- Enter the new size.
- Confirm.
The data stays in place.
A volume cannot be reduced.
Back up and restore
Artica takes a backup with the container stopped, so that the data is consistent.
- Stop the container.
- Click Offline backup.
- To go back to a backup, click Restore offline and pick it.
Backups are kept outside the volume and do not count in its size.
They remain after the volume is destroyed, until you remove them with Delete a backup.
Remove a volume
Removing a container keeps its volume.
To free the space:
- Detach the volume from the container with Detach by recreating container.
- Click Archive and retain data.
The volume is unmounted and kept. - Click Permanently destroy data and confirm twice.
Restarts managed by Artica
Artica, not Docker alone, starts a container that has a quota volume.
It keeps the restart policy you chose and applies it once the volume is mounted.
After a reboot, the container waits until its volume is back.
When a volume cannot be checked safely, it is marked Manual recovery required and its container stays stopped.
Permissions
| Action | Permission |
|---|---|
| Read volumes and their usage | Read disk quotas |
| Create a volume | Create quota volume |
| Extend a volume | Extend capacity |
| Archive a volume | Archive and retain data |
| Attach, detach, back up, restore, destroy, delete a backup | Administer disk quotas |
Troubleshooting
| Symptom | What to do |
|---|---|
| Creation refused for lack of space | The appliance needs the full size plus 1 GiB free. Free some space or choose a smaller size. |
| The container does not start after a reboot | Open the Disk Quota tab. The volume may be unmounted or in Manual recovery required. |
| Backup or restore refused | Stop the container first. |
| The application reports "no space left on device" | The volume is full. Extend it. |