You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+79-3Lines changed: 79 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,10 +17,9 @@ This Docker image configures and runs an Azure DevOps agent with container suppo
17
17
-`AZP_POOL`: Agent pool name
18
18
-`AZP_AGENT_NAME`: Base agent name (will be suffixed with -${AGENT_NUMBER})
19
19
-`AGENT_NUMBER`: **Mandatory** - Unique identifier for each agent instance. Required to avoid configuration conflicts when mounting Docker volumes on disk.
20
+
-`INSTALL_FOLDER`: **Mandatory** - Agent installation directory. Must be identical in both environment variable and volume mount path.
**The `INSTALL_FOLDER` value MUST be identical in both the environment variable and the volume mount path. This is MANDATORY for the agent to function properly.**
133
+
134
+
```yaml
135
+
# ✅ CORRECT - Same path in both places (using variable)
136
+
environment:
137
+
- INSTALL_FOLDER=${INSTALL_FOLDER}
138
+
volumes:
139
+
- ${INSTALL_FOLDER}:${INSTALL_FOLDER}
140
+
141
+
# Example with .env file:
142
+
# INSTALL_FOLDER=/opt/azagent
143
+
144
+
# ❌ WRONG - Different paths will cause FAILURE
145
+
environment:
146
+
- INSTALL_FOLDER=/opt/azagent
147
+
volumes:
148
+
- /opt/agent:/opt/azagent # ← Different path, agent will NOT work
149
+
```
150
+
151
+
**Why this matters:**
152
+
- The agent creates its configuration inside `${INSTALL_FOLDER}/${AGENT_NUMBER}/`
153
+
- The volume mount must map to the exact same path
154
+
- Mismatched paths will prevent the agent from finding its configuration files
155
+
- **The service will FAIL to start if paths don't match**
0 commit comments