Download latest release of Raspbian on : https://www.raspberrypi.org/downloads/raspbian/ Minimal version of raspbian should be better for installing only required packages.
Raspberry is ready after following Raspbian official guide.
Run simply following commands for updating OS and dowloading required packages :
#download Docker for Raspberry
curl -sSL https://get.docker.com | sh
#add pi user to docker group
sudo usermod -aG docker pi
#enable docker service on rpi boot
sudo systemctl enable docker.service
More info on official blog.
- https://docs.docker.com/engine/reference/builder/
- https://github.com/wsargent/docker-cheat-sheet
- http://ricostacruz.com/cheatsheets/docker.html
For extrem security access, install OpenVPN.
A good way to achieve this is PiVPN (very easy install).
If you encounter any issue with internet navigation while connected to VPN, you could try to run :
iptables --policy INPUT ACCEPT
iptables --policy OUTPUT ACCEPT
iptables --policy FORWARD ACCEPT