This commit is contained in:
Thomas Peterson 2021-04-17 12:37:12 +00:00
parent 878b4f1b31
commit ef8465ea2a

View File

@ -8,6 +8,15 @@ mkdir /data
mount -o discard,defaults /dev/sdb /data mount -o discard,defaults /dev/sdb /data
echo "/dev/sdb /data ext4 discard,nofail,defaults 0 0" >> /etc/fstab echo "/dev/sdb /data ext4 discard,nofail,defaults 0 0" >> /etc/fstab
#Swap
fallocate -l 4G /swapfile
chown root:root /swapfile
chmod 0600 /swapfile
mkswap /swapfile
swapon /swapfile
echo '/swapfile none swap sw 0 0' >> /etc/fstab
apt update apt update
apt upgrade -y apt upgrade -y
apt install docker.io -y apt install docker.io -y