Recently I have rent a VPS as private playground and for learning docker. I want to host a few webservices behind nginx-proxy together with docker-letsencrypt-nginx-proxy-companion.
The Server runs Ubuntu 18.04.4 LTS, Docker version 19.03.6, build 369ce74a3c, docker-compose version 1.17.1, build unknown.
4GB vRAM, 4vCores (The hardware runs on Intel Xeon)
As soon as I want to run more than 8 containers I get strage errors. There are a few different errors, and I can't especially say when which one of these appears:
OCI runtime create failede.g. when trying to start joomla as compose-project with mysql:
ERROR: for joomla_joomladb_1 Cannot start service joomladb: OCI runtime create failed: unable to retrieve OCI runtime error (open /run/containerd/io.containerd.runtime.v1.linux/moby/741c[...]6e3/log.json: no such file or directory): fork/exec /usr/sbin/runc: resource temporarily unavailable: unknown
ERROR: for joomla_joomladb_1 Cannot start service joomladb: read unix @->@/containerd-shim/24f42b8[...]32fa1.sock: read: connection reset by peer: unknown
pthread_create failed: Resource temporarily unavailableI don't have any corresponding logs right now. I will post them here if the error occurs once more. But one line always seems to be
parent id not found
- fork failed. When this error appears, I can't do anything anymore. See next point:
Additionally and in relation to that, sometimes I get some strange errors on my shell when typing any command.
When the server is in this state, I neither can su to root or reboot per command line. You can see me trying to type
sudo in this picture: Errors with any command. Even shutdown or reboot
What I have tried
- I have seen this report on Github and a few others and the refer to a maximum task limit on the machine. I already set that to a higher volume as well as to
infinitybut all of that doesn't seem to help. (I once changed it in
/etc/systemd/system.confas well as per
systemctl edit docker.service).
$ systemctl show --property=DefaultTasksMax DefaultTasksMax=4659 $ systemctl status docker ... Tasks: 52 ...
I installed exactly the same system on my laptop (except the virtualization software - the VPS runs on Virtuozzo, locally I used Quemu with virt-manager) - and all works as expected!
The problems appear with any container I try to start.
hello-world, an other compose project or an already built project...
I contacted my hosting provider, also the referred to the above issue and said they wouldn't limit any usage.