I just installed rancheros on a vps (vultr). The hosting includes 15GB (virtual) disk space. However, after login in in rancher from the console, but that doesn't work out properly:
$ sudo su
# cd /
# du -d 1 -h
193.0M ./var
59.4M ./usr
0 ./tmp
44.6M ./sbin
4.0K ./root
0 ./lib
580.0K ./etc
297.6M .
# df -h
none 373.8M 53.0M 320.8M 14% /var/
none 363.0M 0 363.0M 14% /host/dev
none 373.8M 53.0M 320.8M 14% /opt
none 373.8M 53.0M 320.8M 14% /var/lib/docker
none 373.8M 53.0M 320.8M 14% /var/lib/rancher
[...]none 373.8M 53.0M 320.8M 14% /var/var/lib/system-docker/overlay/6c07...8c8c30/merged/var/lib/rancher
none 373.8M 53.0M 320.8M 14% /var/var/lib/system-docker/overlay/6c07...8c8c30/merged/var/lib/rancher
none 373.8M 53.0M 320.8M 14% /var/log
none 373.8M 112.0K 373.7M 14% /var/run
none 373.8M 53.0M 320.8M 14% /var/etc/resolv.conf
none 373.8M 53.0M 320.8M 14% /var/hostnamesk
none 373.8M 53.0M 320.8M 14% /var/hosts
none 363.0M 0M 363.0M 0% /var/dev
# fdisk -l
Disk /dev/vda: 16.1 GB, 16106127360 bytes
16 heads, 63 sectors/track, 31207 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Disk /dev/vda doesn't contain a valid partition table
#
The questions:
1/ Just wondering: it's stated rancheros takes only 20MB. This fresh install seems to take about 53MB. Not that I worry too much about it, I just want to know how much space it takes.
2/ More important: I can't install stuff, since I seem to have only 320.8MB (or is it 363.0MB) available. I'm somewhat confused about the disk space, but it's cerntainly not about 15 GB. For example:
$ docker pull rancher/server
[...]
... Error pulling image (latest from rancher/server, endpoint: [...] no space left on device
$
So: how to install rancheros properly on a vps (from image or from some kind of script. From the vultr docs, this can be a script executed by the vps the first time it starts up, using /bin/bash, or a script executed by iPXE whenever the server starts up and there is no operating system installed.