> For the complete documentation index, see [llms.txt](https://radiantblockchain.gitbook.io/wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://radiantblockchain.gitbook.io/wiki/guides/docker.md).

# Docker

## Run a Docker Radiant Node <a href="#run-a-docker-radiant-node" id="run-a-docker-radiant-node"></a>

### Installing Docker: <a href="#installing-docker" id="installing-docker"></a>

The process for installing docker engine depends on your operating system. Refer to <https://docs.docker.com/engine/install/> and look up instructions for your OS.

### Pulling Docker image: <a href="#pulling-docker-image" id="pulling-docker-image"></a>

You can browse <https://hub.docker.com> for images that you might find use for. At the time of writing there are two options for running a Radiant node: just the node and the node with electrum.

The image for just the node: <https://hub.docker.com/r/radiantcommunity/radiant-node>.

The image for the node + electrum: <https://hub.docker.com/r/radiantcommunity/electrumx_radiant_node>.

If you want to run the electrum version there is no need to also run the pure node container.

Under Docker commands you can see a command to fetch the image so that you store it locally. If you know what image you want there is no need to do this manually. When we run the image and Docker can't find it locally it will search Docker Hub for it.

### Running the container: <a href="#running-the-container" id="running-the-container"></a>

The command for starting the node container is:

```
sudo docker run --name radiantnode -itd radiantcommunity/radiant-node
```

<figure><img src="/files/ucnqmQ7UtSPcErX8cgV9" alt=""><figcaption></figcaption></figure>

You might not need to sudo if you have given docker sudo rights. The -itd tag is to run the container interactively, with tty (terminal) and detatched (background). The last bit is the reference to the image you want to run.

The name tag is optional, but makes it easier when we specify it when we want to inspect the container and when we stop it.

If it is the first time you run the command and dont have the image locally you will see the download progress. This is only for when you fetch new images. The second time you run it it will be much faster as you already have the image. When you run the command you should see a hash, and that means the container started.

The command for starting the node + electrum container is:

```
sudo docker run --name radiantelectrum -itd radiantcommunity/electrumx_radiant_node
```

### Inspecting the container: <a href="#inspecting-the-container" id="inspecting-the-container"></a>

You can run this to see what containers are currently running:

```
sudo docker ps
```

<figure><img src="/files/uBQasLtodS24C2pPsOEK" alt=""><figcaption></figcaption></figure>

and you can run this to see all containers that has been ran:

```
sudo docker ps -a
```

<figure><img src="/files/uTj1ncagi3WzPzpPhiJp" alt=""><figcaption></figcaption></figure>

Acces the container to inspect and troubleshoot: We can access the terminal of the running container to inspect and troubleshoot it using this command:

```
sudo docker exec -it radiantnode sh
```

This will open up the terminal in the container and we can run commands to see that everything runs as expected. You will see a # symbol meaning we are in the terminal of the node. Now we can run:

```
radiant-cli -getinfo 
```

to see that our node is running. You can see other useful commands to run on the node in the [Radiant Node guide](/wiki/guides/radiant.md#useful-commands).

<figure><img src="/files/VDRSE8KzeAsQwVLEk6e9" alt=""><figcaption></figcaption></figure>

To go back out of the container simply use run`exit` inside the container.

We now have a functional radiant node up and running, but why stop there? We can easilly run multiple nodes at once. Just start another node using the same image (but different name). This will spawn a new container with a new node running. For example:

```
sudo docker run --name radiantnode2 -itd radiantcommunity/radiant-node
```

We can now use

```
sudo docker ps
```

to see that we have two nodes running.

### Stopping container: <a href="#stopping-container" id="stopping-container"></a>

When its time to stop the container we simply run:

```
sudo docker stop radiantnode
```

"radiantnode" is the name we specified when we started the first container. To stop the second container we started:

```
sudo docker stop radiantnode2
```

To stop the node + electrum:

```
sudo docker stop radiantelectrum
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://radiantblockchain.gitbook.io/wiki/guides/docker.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
