docker build -t dockeragent . --platform=linux/amd64
docker run -e AZP_URL=<Azure DevOps instance> -e AZP_TOKEN=<PAT token> -e AZP_AGENT_NAME=mydockeragent -e AZP_EMAIL= -e AZP_PASS= -v /var/run/docker.sock:/var/run/docker.sock --privileged dockeragent
Login inside agent with az login -u <username> -p <password>