Installation within a Docker container

Deployment

  1. To install the Xopero ONE agent within a Docker container, use the images available on Docker Hub:

docker pull xopero/gitprotect-agent:latest
  1. Create a host directory for the Xopero ONE Management Service container databases (which are located at /app/Xopero inside the container) to store databases outside the container:

mkdir -p /opt/gitprotect-agent/data
  1. Run the container with the correct volume mounting and environment variables using the following command:

docker run -v /host/path:/container/path -e ENV_VAR=value image_name
docker run -d \
  --name <container_name> \
  -e ManagementServiceUrl="<your_xopero_one_service_URL>" \
  -e XoperoOverriddenHostName="<device_name>" \
  -v /opt/gitprotect-agent/data:/app/Xopero \
  --restart unless-stopped \
  xopero/gitprotect-agent:latest
Example
docker run -d \
  --name xopero-agent \
  -e ManagementServiceUrl="https://192.168.1.10:28555" \
  -e XoperoOverriddenHostName="Docker_agent" \
  -v /opt/gitprotect-agent/data:/app/Xopero \
  --restart unless-stopped \
  xopero/gitprotect-agent:latest
  1. Check if the container works correctly by using the following command:

docker ps
  1. Once all the above steps are completed, the agent will report to the Management Service panel for activation.

Last updated