azure-devops-self-hosted-agent-config Build the docker image docker build -t dockeragent:latest . Run the docker agent chmod +x run-agent.sh && ./run-agent.sh