# Mac

{% hint style="info" %}
These instructions are specific to Mac. Instructions are also available for [Windows](broken://pages/-MYp9ZMDepU1JWUVcovE) and [Linux](broken://pages/-MYp9ZMETDZ5nHxoeZSg).
{% endhint %}

## 1. Download Docker Desktop

You can download Docker Desktop by accessing [this link for Intel Macs](https://desktop.docker.com/mac/stable/amd64/Docker.dmg) or [this link for Apple chip Macs](https://desktop.docker.com/mac/stable/arm64/Docker.dmg).

![Download Docker Desktop](/files/-MYp9ZaSmlnqFCU2091W)

After the download finishes you can find the dmg file in the `Downloads` directory on the Dock.

![Downloaded Docker Desktop](/files/-MYp9ZaTv_zG2EA1ZCoP)

Open the `Docker.dmg` file.

![Open Docker Desktop](/files/-MYp9ZaUhgLiBk-tTId6)

You should see a window similar to the following. Drag and drop the Docker app file into the Applications folder.

![Install Docker Desktop](/files/-MYp9ZaVpc11x5veRO7l)

You may get a notice like this because the app was downloaded from the web and not installed from the App Store. You can safely click "Open" here.

![Confirm Docker Desktop](/files/-MYp9ZaW7MuY_9kgctZH)

Docker also needs some privileges to install the Docker Helper. Click "OK" and enter your password.

![Confirm Docker Desktop](/files/-MYp9ZaXc89GsMljAY-z)

Now you can open Finder and go to the Applications folder. You should see the Docker app.

*NOTE: You can also press `CMD` + `SPACE` and search for Docker*

![Open Docker](/files/-MYp9ZaYDqvBcsWrLQo7)

After opening the application you should see a screen similar to this:

![Starting Docker](/files/-MYp9ZaZzGf0hRV7KdPl)

When Docker starts you should see this screen. We can close the Docker window now.

![Docker Started](/files/-MYp9Za_kFJ6kZ7HuvtW)

## 2. Open Terminal

We need to use the `Terminal` application in order to start the Taraxa Node image.

You can find the app in the `Utilities` directory under `Applications`.

![Open Utilities](/files/-MYp9ZaaRVw7Z_OBWuk_)

Open the terminal application.

*NOTE: You can also press `CMD` + `SPACE` and search for Terminal*

![Open Terminal](/files/-MYp9Zabz7TSaaWKHZR8)

You should see a window similar to this:

![Terminal Open](/files/-MYp9ZachD2b0x2_84VO)

## 3. Start Taraxa

We have to run the following commands one by one:

```bash
cd ~/Desktop
curl -L https://github.com/Taraxa-project/taraxa-ops/archive/refs/heads/master.zip > master.zip && unzip master.zip && rm -f master.zip
```

{% hint style="danger" %}
GitHub is blocked in some countries. If you can't run the previous command please refer to the [GitHub is blocked](https://docs.taraxa.io/node-setup/testnet_node_setup/github_blocked) document.
{% endhint %}

```bash
cd ~/Desktop/taraxa-ops-master/taraxa_compose
docker-compose up -d
docker-compose logs -f
```

Now Docker is pulling the Taraxa Node image. You should see something similar to this:

![Starting Taraxa](/files/-MYp9ZadP0AdZzDAmT9h)

After it finishes pulling the latest version the node will start and you should see something similar to the following:

![Taraxa Started](/files/-MYp9Zae_DXZq0Rqbx34)

\*\*NOTE: \*\**You can press* `CTRL` + `C` *to stop displaying the logs*

## 4. Updating the Taraxa Node

From time to time we will release new versions of the node software. Try to keep it up to date using the following commands:

```bash
cd ~/Desktop/taraxa-ops-master/taraxa_compose
curl -0 https://raw.githubusercontent.com/Taraxa-project/taraxa-ops/master/taraxa_compose/docker-compose.yml > docker-compose-new.yml && mv docker-compose-new.yml docker-compose.yml
```

{% hint style="danger" %}
GitHub is blocked in some countries. If you can't run the previous command please refer to the [GitHub is blocked](https://github.com/Taraxa-project/taraxa-documentation/tree/f4ee57d43b23f5ad4a2212fa5ec90254d9181f92/node-setup/testnet_node_setup/node-setup/github_blocked.md) document.
{% endhint %}

```bash
docker-compose down
docker-compose pull
docker-compose up -d
docker-compose logs -f
```

During the testing period, we will also make changes on the protocol level and you will have to re-sync all the data. Don't worry, we will let you know. To remove the current data and do a full re-sync you have to run the following commands:

```bash
cd ~/Desktop/taraxa-ops-master/taraxa_compose
docker-compose down -v
docker-compose pull
docker-compose up -d
docker-compose logs -f
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://taraxa.gitbook.io/taraxa-network/node-setup/testnet_node_setup-1/mac.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
