# 0G Guide Validator Node

By [🌸 Vaccaco 🌸](https://paragraph.com/@vaccaco) · 2024-07-15

---

### Step 1: Install Docker and Docker Compose

**1.1 Installing Docker:**

For Windows:

*   Download the Docker Desktop installer from the [official website](https://www.docker.com/products/docker-desktop).
    
*   Run the installer and follow the instructions.
    

For Mac:

*   Download the Docker Desktop installer from the [official website](https://www.docker.com/products/docker-desktop).
    
*   Run the installer and follow the instructions.
    

For Linux:

*   Open a terminal and run the following commands:
    
        sudo apt-get update
        sudo apt-get install docker.io
        sudo systemctl start docker
        sudo systemctl enable docker
        
    

**1.2 Installing Docker Compose:**

For all OS:

*   Download the latest version of Docker Compose from the [official website](https://docs.docker.com/compose/install/).
    
*   Follow the instructions for your operating system.
    

### Step 2: Setting up the Environment

**2.1 Create a Working Directory:**

Create a folder on your computer for the node files. For example:

    mkdir og-lab-node
    cd og-lab-node
    

**2.2 Download the docker-compose.yml File:**

Create a file named `docker-compose.yml` in your working directory and copy the following text into it:

    version: '3'
    
    services:
      oglab-node:
        image: oglab/oglab-node:latest
        ports:
          - "30303:30303"
          - "30303:30303/udp"
        volumes:
          - ./data:/root/.oglab
        restart: always
    

### Step 3: Launching the Node

**3.1 Run Docker Compose:**

In the terminal, while in your working directory, run the command:

    docker-compose up -d
    

This command will start your node in the background.

### Step 4: Checking the Node

**4.1 View Logs:**

To ensure that the node is running correctly, you can check the logs:

    docker-compose logs -f
    

### Step 5: Updating the Node

**5.1 Updating the Docker Image:**

To update the node to the latest version, run the following commands:

    docker-compose pull
    docker-compose down
    docker-compose up -d
    

These commands will pull the latest image, stop the current node, and start the updated one.

### Conclusion

Now your OG-Lab node is up and running. You can monitor its operation through the logs and update it as necessary.

**OUR SOC.LINKS:**

[https://mirror.xyz/0x29DeB1B3E7D03B8F5Be5f0b2E1A76e3Bc32619bA](https://mirror.xyz/0x29DeB1B3E7D03B8F5Be5f0b2E1A76e3Bc32619bA)

[https://linktr.ee/Vaccaco](https://linktr.ee/Vaccaco)

[https://x.com/Vaccaco](https://x.com/Vaccaco)

[https://discordapp.com/users/847165372074819634/](https://discordapp.com/users/847165372074819634/)

---

*Originally published on [🌸 Vaccaco 🌸](https://paragraph.com/@vaccaco/0g-guide-validator-node)*
