Now that you have created an image, you can run a container.
Run the container. This installs the latest version of the agent, configures it, and runs the agent. It targets the Default pool of a specified Azure DevOps or Azure DevOps Server instance of your choice:
```shell
docker run -e VSTS_ACCOUNT=<Azure DevOps instance> -e VSTS_TOKEN=<PAT token> -e VSTS_AGENT=mydockeragent conplementag/vsts-agent:3.0
```
Optionally, you can control the pool and agent work directory by using additional environment variables.
| Environment variable | Description |
|---|---|
| VSTS_ACCOUNT | The URL of the Azure DevOps or Azure DevOps Server instance. |
| VSTS_TOKEN | Personal Access Token (PAT) with Agent Pools (read, manage) scope, created by a user who has permission |
| VSTS_AGENT | Agent name (default value: the container hostname). |
| VSTS_POOL | Agent pool name (default value: Default). |
| VSTS_WORK | Work directory (default value: _work). |
Find all details here: https://github.com/MicrosoftDocs/azure-devops-docs/blob/master/docs/pipelines/agents/docker.md
Ubuntu 22.04.
Content type
Image
Digest
sha256:74dcbc3fc…
Size
1.5 GB
Last updated
about 1 year ago
docker pull conplementag/vsts-agent:3.0