I'm using Proxmox 7.0-11 on ZFS filesystem and I'm trying to use Dokku (which uses Docker) on a Ubuntu 20.04 LXC Unprivileged container.
On the container, I enabled the nesting and keyctl features right after created using the Ubuntu 20.04 template. Here the config:
Then, after upgrade, I run:
in order to install Dokku.
The installation seems worked but the disk space rapidly increase from 2GB to 10GB.
Then, after creating a Dokku apps, I deployed my Hello World node application. This took a lot of time (around 30 minutes) and disk space (which it's now 20GB). Running a ncdu / on the container filesystem shows the folder /var/lib/docker/vfs/dir/ takes basically the whole disk space (with tens of files). Furthermore, every single additional Dokku command is reallllly slow and takes more and more disk space.
I've never used Docker before so maybe you can help me. How can I fix this?
On the container, I enabled the nesting and keyctl features right after created using the Ubuntu 20.04 template. Here the config:
Bash:
root@srv001:~# pct config 104
arch: amd64
cores: 4
features: keyctl=1,nesting=1
hostname: dokku
memory: 2048
net0: name=eth0,bridge=vmbr0,gw=192.168.1.1,hwaddr=72:41:4B:AE:C1:DF,ip=192.168.1.104/24,type=veth
ostype: ubuntu
rootfs: local-zfs:subvol-104-disk-0,size=24G
swap: 2048
unprivileged: 1
Then, after upgrade, I run:
Bash:
wget https://raw.githubusercontent.com/dokku/dokku/v0.26.6/bootstrap.sh;
DOKKU_TAG=v0.26.6 bash bootstrap.sh
in order to install Dokku.
The installation seems worked but the disk space rapidly increase from 2GB to 10GB.
Then, after creating a Dokku apps, I deployed my Hello World node application. This took a lot of time (around 30 minutes) and disk space (which it's now 20GB). Running a ncdu / on the container filesystem shows the folder /var/lib/docker/vfs/dir/ takes basically the whole disk space (with tens of files). Furthermore, every single additional Dokku command is reallllly slow and takes more and more disk space.
I've never used Docker before so maybe you can help me. How can I fix this?