# SOMA- (Self Onboarding Mining Application) Installation on MacBooK

## **Installation of SOMA on Mac OS device**

In this document, we have demonstrated how to install Docker (a container necessary for the installation of SOMA) and then instalation of SOMA.

## Docker Installation

1\.  Search for "Docker Desktop for Mac".

Find more information about [Docker Desktop for Mac](https://docs.docker.com/docker-for-mac/install/).

![](https://2539428891-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJSDRvtSnh5IVozvNlk%2F-MKXWwag0-Hccgaxcax5%2F-MKlA0_XxEuRfag-Z_u0%2FHnet-image.gif?alt=media\&token=191e3725-c587-4f50-8c39-7c0f6d4904e1)

2\.  Click on **Get Docker**.

![](https://2539428891-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJSDRvtSnh5IVozvNlk%2F-MKXWwag0-Hccgaxcax5%2F-MKlB3s3pC27LzPqihGd%2FHnet-image%20\(1\).gif?alt=media\&token=e03fd697-46c6-4651-8902-fa286ca195b7)

3\.   Drag and drop the Docker file to Applications folder.

![](https://2539428891-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJSDRvtSnh5IVozvNlk%2F-MKXWwag0-Hccgaxcax5%2F-MKlBHAqLnwllod9IUYg%2FHnet-image%20\(2\).gif?alt=media\&token=26028d1f-bbd9-4829-90ed-41e8c541a3b0)

4\.  Double-click and open the Docker.

![](https://2539428891-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJSDRvtSnh5IVozvNlk%2F-MKXWwag0-Hccgaxcax5%2F-MKlBR-fxANbHJkdZpxV%2FHnet-image%20\(3\).gif?alt=media\&token=c8ab8f0f-d518-4a44-ac96-a63d0eba7104)

## SOMA Installation

Once Docker is installed on your system, you can begin SOMA installation by opening the terminal in your MacBook.

1. Check whether the Docker is installed.

```
docker --version
```

2\. Install the Docker Image on your device/instance.

```
docker pull sxeshakticoin/testnet:latest
```

3\. Get the SOMA Docker Image ID.

```
docker images
```

4\. Set the path for installation.

```
pwd
```

5\. Run SOMA on your machine/instance.

```
docker run -d -p <port-number>:<port-number> --env NODE_NAME=<node-name> --mount type=bind,source=$(pwd),target=/shakti <docker-image-id>
```

{% hint style="info" %}
**Example:**  sudo docker run -p 8765:8765 -d --env NODE\_NAME=dockernode01 --mount type=bind,source=$(pwd),target=/shakti 8030aaaef48b
{% endhint %}

6\. Get the public key & unique node name for SOMA input fields.

```
cat shakticoin-poe-server.keys
```
