> For the complete documentation index, see [llms.txt](https://varunsridharan.gitbook.io/freenas-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://varunsridharan.gitbook.io/freenas-docs/alpine-with-docker-install.md).

# 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` \
&#x20;           1\. Select your keyboard layout - i used `us` and `us-alt-intl`\
&#x20;           2\. Enter Custom Hostname if required\
&#x20;           3\. Select The Network Port\
&#x20;           4\. Select IP Type (DHCP / Static)\
&#x20;           5\. Set ROOT Password\
&#x20;           6\. Set Timezone\
&#x20;           7\. Follow Any Other Instructions\
&#x20;           8\. for download mirror use type `f` to auto select\
&#x20;           9\. Install SSH Server if required\
&#x20;         10\. Select The Disk you want to install in eg (`sda`) and set it to `sys` to install it\
&#x20;         11\. Remove Install Media And Reboot<br>

**Step6** login as root\
**Step7** run `apk add docker`.

{% hint style="info" %}
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>.
{% endhint %}

**Step8** run `apk update`and run `apk add docker` again  if edited repositories file \
**Step9**\
&#x20;  **- To start the Docker daemon at boot, run :** `rc-update add docker boot`\
&#x20;   **- 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`
