Alpine With Docker Install

I am writing a detailed docs on how to install Alpine in freenas with docker

Step1 Download any alpine linux https://www.alpinelinux.org/downloads/ - i used alpine server (extended) Step2 Create A VM With min config in freenas Step3 Boot into VM With VNC / Serial in freenas Step4 Login as root -- No Password Required Step5 Type setup-alpine 1. Select your keyboard layout - i used us and us-alt-intl 2. Enter Custom Hostname if required 3. Select The Network Port 4. Select IP Type (DHCP / Static) 5. Set ROOT Password 6. Set Timezone 7. Follow Any Other Instructions 8. for download mirror use type f to auto select 9. Install SSH Server if required 10. Select The Disk you want to install in eg (sda) and set it to sys to install it 11. Remove Install Media And Reboot

Step6 login as root Step7 run apk add docker.

Docker package is available in the Community repository. Therefore, if apk add fails because of unsatisfiable constraints error, you need to edit the /etc/apk/repositories file to add (or uncomment) a line. Community repository link: http://dl-cdn.alpinelinux.org/alpine/latest-stable/community.

Step8 run apk updateand run apk add docker again if edited repositories file Step9 - To start the Docker daemon at boot, run : rc-update add docker boot - Then to start the Docker daemon manually, run: service docker start

Docker Compose

To install docker-compose, first install pip: apk add py-pip Since docker-compose version 1.24.0, you also need some dev dependencies: apk add python-dev libffi-dev openssl-dev gcc libc-dev make Then install docker-compose, run: pip install docker-compose

Last updated