# Applies to Raspberry Pi 3 implementation of Rancher OS (which is obviously on an SD Card)
# Generally VM Rancher is easier to manage and more powerful but my use case revolves around crowding my server with other
# VMs while still needing to play with the RancherOS feature set
sudo fdisk /dev/mmcblk0
# n 4 times and w to write
# comment out the above line, reboot & rerun
sudo mkdir /mnt/docker
sudo ros config set rancher.docker.extra_args [-g,/mnt/docker]
sudo mkfs.ext4 /dev/mmcblk0p3
sudo ros config set mounts "[['/dev/mmcblk0p3','/mnt/docker','ext4',']]"
sudo mount /dev/mmcblk0p3 /mnt/docker
sudo system-docker restart docker