Update within a Docker container

Replacing the agent

  1. Download the new image and remove the old container with the agent using the following command:

docker pull xopero/gitprotect-agent:latest
docker stop xopero-agent && docker rm xopero-agent
  1. Create a new container with the GitProtect worker:

docker run -d \
  --name xopero-agent \
  -e ManagementServiceUrl="<your_xopero_service_URL>" \
  -e XoperoOverriddenHostName="<device_name>" \
  -v /opt/gitprotect-agent/data:/app/Xopero \
  --restart unless-stopped \
  xopero/gitprotect-agent:latest
  • <your_xopero_service_URL>GitProtect Management Service address with the port (i.e., 123.456.7.890:28555)

  • <device_name> — custom Docker container name

  1. Once done, the GitProtect worker should now be up to date.

Last updated