thoughts.sort()

Hosting a Unity project in Docker

October 06, 2020

Tags: Unity, Docker

In short. Buy more ram.

root@docker-droplet:~/nginx-certbot# docker ps
CONTAINER ID        IMAGE                          COMMAND                  CREATED             STATUS              PORTS                                      NAMES
fe3335417410        lasperparty_app                "python app.py"          23 seconds ago      Up 1 second         0.0.0.0:5000->5000/tcp                     lasperparty_app_1
b3325db7b3c6        lasperparty_worker             "python worker.py"       23 seconds ago      Up 1 second         0.0.0.0:5001->5000/tcp                     lasperparty_worker_1
899d74b14816        redis:5.0.6-alpine             "docker-entrypoint.s…"   23 seconds ago      Up 1 second         0.0.0.0:6379->6379/tcp                     lasperparty_redis_1
faffc86515fe        lasperparty_taziolol           "python app.py"          23 seconds ago      Up 1 second         0.0.0.0:5002->5000/tcp                     lasperparty_taziolol_1
3e731f5b0156        lasperparty_powerbikonsulent   "python app.py"          23 seconds ago      Up 1 second         0.0.0.0:5003->5000/tcp                     lasperparty_powerbikonsulent_1
1c222c80f4d4        lasperparty_kart               "python -m http.serv…"   23 seconds ago      Up 1 second         0.0.0.0:8000->8000/tcp                     lasperparty_kart_1
53cd84054583        certbot/certbot                "/bin/sh -c 'trap ex…"   6 minutes ago       Up 3 minutes        80/tcp, 443/tcp                            nginx-certbot_certbot_1
dbcf019f744f        nginx:1.15-alpine              "/bin/sh -c 'while :…"   6 minutes ago       Up About a minute   0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp   nginx-certbot_nginx_1

root@docker-droplet:~/nginx-certbot# free -m
              total        used        free      shared  buff/cache   available
Mem:            981         881          65           1          34           8
Swap:             0           0           0

root@docker-droplet:~/nginx-certbot# service docker stop

root@docker-droplet:~/nginx-certbot# free -m
              total        used        free      shared  buff/cache   available
Mem:            981         167         551           1         262         666
Swap:             0           0           0

root@docker-droplet:~/nginx-certbot# service docker start

root@docker-droplet:~/nginx-certbot# free -m
              total        used        free      shared  buff/cache   available
Mem:            981         236         446           1         298         595
Swap:             0           0           0

root@docker-droplet:~/nginx-certbot# docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                  PORTS                                      NAMES
53cd84054583        certbot/certbot     "/bin/sh -c 'trap ex…"   10 minutes ago      Up 11 seconds           80/tcp, 443/tcp                            nginx-certbot_certbot_1
dbcf019f744f        nginx:1.15-alpine   "/bin/sh -c 'while :…"   10 minutes ago      Up Less than a second   0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp   nginx-certbot_nginx_1

root@docker-droplet:~/nginx-certbot# free -m
              total        used        free      shared  buff/cache   available
Mem:            981         545          65           1         370         289
Swap:             0           0           0

Learn how to use htop

Sources: