Skip to content
guarddog-dp edited this page Sep 29, 2024 · 4 revisions

gdai_logo

Ubuntu

Installation, configuration, and deployment of the DCX Edge Sensor

Here are the up-to-date instructions to install Docker and the DCX container on Ubuntu 24.04 LTS (Noble)

1. Update Your System:


sudo apt update
sudo apt upgrade -y

2. Install Docker:

1. Create a Keyring Directory:


sudo mkdir -p /etc/apt/keyrings

2. Add Docker’s GPG Key:


curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo tee /etc/apt/keyrings/docker.gpg > /dev/null

3. Add Docker Repository:


echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

4. Install Docker:


sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io -y

5. Enable Docker to Start on Boot:


sudo systemctl enable docker

3. Install and Configure the DCX Container:

1. Pull the DCX Docker Image:


docker pull guarddogai/prod:latest

2. Run the DCX Container:

Replace <DEVICE_NAME>, <USER_EMAIL>, and <LICENSE_KEY> with your actual values:


docker run -it --cap-add NET_ADMIN --net=host --privileged --restart always -v /etc/guarddog:/etc/guarddog --name gdai guarddogai/prod:latest   

4. Verify and Manage the Container:

1. Check Docker Status:


sudo systemctl status docker

2. Check Running Containers:


docker ps

3. Stop the Container:


docker stop gdai

5. Automatic Start on Reboot:

- The container is set to automatically restart because of the --restart always option included in the run command.

Clone this wiki locally