# "Disk quota exceeded" on linux with docker?

**URL:** <https://forum.storj.io/t/disk-quota-exceeded-on-linux-with-docker/24831>\
**Category:** troubleshooting\
**Tags:** docker, linux, hardware\
**Created:** [January 3, 2024, 8:55am UTC](https://forum.storj.io/t/disk-quota-exceeded-on-linux-with-docker/24831 "2024-01-03T08:55:32Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![cnicules](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/cnicules/32/7824_2.png) [@cnicules](https://forum.storj.io/u/cnicules)\
**Post date:** [January 3, 2024, 8:55am UTC](https://forum.storj.io/t/disk-quota-exceeded-on-linux-with-docker/24831/1 "2024-01-03T08:55:32Z")

</div>

Hello,  
I just got a docker node up, and after a couple of hours, it stopped complaining there is no more space. I still have plenty of space available on the disk, but for some reason, the docker image is somehow limited. It has 10G.  
Debian 11.8, all latest updates done.  
Any thoughts?  
Regards,

---

<div class="post-metadata">

**Author:** ![striker43](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/striker43/32/1135_2.png) [@striker43](https://forum.storj.io/u/striker43)\
**Post date:** [January 3, 2024, 9:49am UTC](https://forum.storj.io/t/disk-quota-exceeded-on-linux-with-docker/24831/2 "2024-01-03T09:49:24Z")

</div>

did you mount the volume correctly? Maybe the node was storing the data directly inside the container?

---

<div class="post-metadata">

**Author:** ![cnicules](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/cnicules/32/7824_2.png) [@cnicules](https://forum.storj.io/u/cnicules)\
**Post date:** [January 3, 2024, 11:17am UTC](https://forum.storj.io/t/disk-quota-exceeded-on-linux-with-docker/24831/3 "2024-01-03T11:17:55Z")

</div>

i have a dedicated user “storj” and the StarageLocation is in the home dir of the user. The container files is in the standard /var/lib… location.  
what I could get until now from web search is that there is a limitation at the mounting/mapping inside the container at 10G, default from docker. But still don’t know how to change it.

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [January 4, 2024, 3:29am UTC](https://forum.storj.io/t/disk-quota-exceeded-on-linux-with-docker/24831/4 "2024-01-04T03:29:52Z")

</div>

Hello @cnicules,  
Welcome to the forum!

Please show result of the command

```auto
df --si -T

```

and your `docker run` command (you may mask the private info).

---

<div class="post-metadata">

**Author:** ![cnicules](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/cnicules/32/7824_2.png) [@cnicules](https://forum.storj.io/u/cnicules)\
**Post date:** [January 4, 2024, 11:46am UTC](https://forum.storj.io/t/disk-quota-exceeded-on-linux-with-docker/24831/5 "2024-01-04T11:46:59Z")

</div>

Filesystem Type Size Used Avail Use% Mounted on  
udev devtmpfs 2.1G 0 2.1G 0% /dev  
tmpfs tmpfs 410M 721k 409M 1% /run  
/dev/sda2 ext4 2.0T 111G 1.8T 6% /  
tmpfs tmpfs 2.1G 0 2.1G 0% /dev/shm  
tmpfs tmpfs 5.3M 0 5.3M 0% /run/lock  
tmpfs tmpfs 410M 0 410M 0% /run/user/1003

and

docker run -d --restart unless-stopped --stop-timeout 300   
-p 28967:28967/tcp   
-p 28967:28967/udp   
-p 5.xx:14002:14002   
-e WALLET=“0xxxx83”   
-e EMAIL=“cipxxxxx”   
-e ADDRESS=“5.xx:28967”   
-e STORAGE=“1600GB”   
–user $(id -u):$(id -g)   
–mount type=bind,source=“/home/storj/.local/share/storj/identity/storagenode/”,destination=/app/identity   
–mount type=bind,source=“/home/storj/StorjStorage”,destination=/app/config   
–name storagenode storjlabs/storagenode:latest --operator.wallet-features=zksync-era

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [January 4, 2024, 12:49pm UTC](https://forum.storj.io/t/disk-quota-exceeded-on-linux-with-docker/24831/6 "2024-01-04T12:49:02Z")

</div>

So, you used a system drive to also store the node’s data…  
Not a good choice, but - well…

From the error it looks like you (perhaps) do not have enough permissions to operate a data…  
Could you please change the owner to `$(id -u):$(id -g)`?

```auto
sudo chown $(id -u):$(id -g) -R /home/storj/StorjStorage

```

and try to invoke your full `docker run` command?

P.S. please note - you need to change permissions from a regular shell, not under `root`…

---

<div class="post-metadata">

**Author:** ![cnicules](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/cnicules/32/7824_2.png) [@cnicules](https://forum.storj.io/u/cnicules)\
**Post date:** [January 4, 2024, 2:41pm UTC](https://forum.storj.io/t/disk-quota-exceeded-on-linux-with-docker/24831/7 "2024-01-04T14:41:02Z")

</div>

i don’t get it, what you are getting at

I run the docker with the user that has full ownership as it’s in his home dir, and he created it.  
and yes I did permit that user to run docker images and he can

all worked well until it hit 10G of space

du -sh StorjStorage/  
10G StorjStorage/

then inside container, I started to get

sed: couldn’t flush /etc/supervisor/sedeqKe8J: Disk quota exceeded  
sed: couldn’t flush /etc/supervisor/sedeZhLre: Disk quota exceeded  
sed: couldn’t flush /etc/supervisor/sedhfi3V8: Disk quota exceeded  
sed: couldn’t flush /etc/supervisor/sediWjUVt: Disk quota exceeded

at various googling I get something like this [docker and image size limit - Stack Overflow](https://stackoverflow.com/questions/31883782/docker-and-image-size-limit)

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [January 5, 2024, 3:02am UTC](https://forum.storj.io/t/disk-quota-exceeded-on-linux-with-docker/24831/8 "2024-01-05T03:02:08Z")

</div>

Please give me result of the command

```auto
docker exec -it storagenode df --si

```

---

<div class="post-metadata">

**Author:** ![cnicules](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/cnicules/32/7824_2.png) [@cnicules](https://forum.storj.io/u/cnicules)\
**Post date:** [January 5, 2024, 8:58am UTC](https://forum.storj.io/t/disk-quota-exceeded-on-linux-with-docker/24831/9 "2024-01-05T08:58:03Z")

</div>

docker exec -it storagenode df --si  
Filesystem Size Used Avail Use% Mounted on  
overlay 2.0T 108G 1.8T 6% /  
tmpfs 68M 0 68M 0% /dev  
shm 68M 0 68M 0% /dev/shm  
/dev/sda2 2.0T 108G 1.8T 6% /app/config  
tmpfs 2.1G 0 2.1G 0% /proc/acpi  
tmpfs 2.1G 0 2.1G 0% /sys/firmware

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [January 5, 2024, 11:33am UTC](https://forum.storj.io/t/disk-quota-exceeded-on-linux-with-docker/24831/10 "2024-01-05T11:33:47Z")

</div>

Interesting. Your container should not have any issues with a free space at `/etc/`, it’s not mounted differently.  
tmpfs is low, but not where is it used…

Is it a snap docker?

---

<div class="post-metadata">

**Author:** ![cnicules](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/cnicules/32/7824_2.png) [@cnicules](https://forum.storj.io/u/cnicules)\
**Post date:** [January 5, 2024, 12:17pm UTC](https://forum.storj.io/t/disk-quota-exceeded-on-linux-with-docker/24831/11 "2024-01-05T12:17:57Z")

</div>

it’s a normal cli debian docker, installed with apt

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [January 6, 2024, 1:22am UTC](https://forum.storj.io/t/disk-quota-exceeded-on-linux-with-docker/24831/12 "2024-01-06T01:22:33Z")

</div>

Did you check quota for this user and group?  
See also [debian - Disk quota exceeded problem - Unix & Linux Stack Exchange](https://unix.stackexchange.com/a/270107)

---

<div class="post-metadata">

**Author:** ![cnicules](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/cnicules/32/7824_2.png) [@cnicules](https://forum.storj.io/u/cnicules)\
**Post date:** [January 6, 2024, 10:22am UTC](https://forum.storj.io/t/disk-quota-exceeded-on-linux-with-docker/24831/13 "2024-01-06T10:22:56Z")

</div>

hmm, per user was no limit, but a default limit at 10G was set. i removed it also. Restarted and will monitor.

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [January 6, 2024, 11:14am UTC](https://forum.storj.io/t/disk-quota-exceeded-on-linux-with-docker/24831/14 "2024-01-06T11:14:34Z")

</div>

I do not know, why Debian doing so.  
I switched everything to Ubuntu several years ago - no weird issues so far

---

<div class="post-metadata">

**Author:** ![cnicules](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/cnicules/32/7824_2.png) [@cnicules](https://forum.storj.io/u/cnicules)\
**Post date:** [January 6, 2024, 5:33pm UTC](https://forum.storj.io/t/disk-quota-exceeded-on-linux-with-docker/24831/15 "2024-01-06T17:33:24Z")

</div>

yeah got to 22G, yeeee.  
Thanks
