Steps for installing docker and setting up drives
- Install Docker or
curl -sSL https://get.docker.com | sh
1.1 Install Docker using the following two lines, one by one
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
- Add permission to user
sudo usermod -aG docker pi
- Install dependencies [do one by one]
sudo apt-get install -y libffi-dev libssl-dev sudo apt-get install -y python3 python3-pip sudo apt-get remove python-configparser
- Install Docker-compose
sudo pip3 -v install docker-compose
- Create a mount point anywhere. For example in /media as shown.
- Create a folder as mountpoint. For example WDRED.
- Take note of the path. For example, if created folder WDRED in /media, then the path is
/media/WDRED
This enables external harddisk to be read as soon as system starts.
- Check connected harddisk and names [should look like in picture]
sudo lsblk
- Check the id of the harddisk [take note of UUID]
sudo blkid
- Open FSTAB to add the harddrive UUID to autostart [should look like picture once you run]
sudo nano /etc/fstab
- Add harddisk using the following command [change your UUID and /yourpathhere]
UUID="your UUID here" /yourpathhere auto defaults,nofail 0 0
- Final result should look like this.
- Press Ctrl+X, followed by Y and then press Enter.