I have some docker containers (NGINX / PHP, MySQL, etc.) that have been running fine for years. However, recently I started seeing this error when running a PHP script in Laravel in the NGINX / PHP container.
mkdir(): No space left on device
From what I can tell, it looks like it is being thrown / generated when the web app tries to send an e-mail during the Login OTP / 2FA step, using Illuminate\Support\Facades\Mail in Laravel. I am presuming that there is an attempt to write to some sort of cache folder / file or other directory within the container that must somehow be full or otherwise does not have permission to write to the location.
It looks like most of the nginx cache files are in: /var/cache/nginx in the container.
Although, nothing has changed in the code recently.
Is there a way to check the available space in the container, or otherwise set the size allocated to a Docker Container ?