Updates instructions for Docker (#626)

* Fix Docker build instructions. Make ServerName mandatory.

* Update README and TROUBLESHOOTING.

* Move to single line.

* Update servers/Azure.Mcp.Server/TROUBLESHOOTING.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Add preamble and link to TROUBLESHOOTING

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Connie YauandCopilot authored and GitHub committed 2025-09-30 08:35:38 -07:00
1 parent f8fb0a85ba
commit 7fd81a3564
5 files changed
+66 -19

No files matched your search

+3 -3
View File
@@ -246,7 +246,7 @@ dotnet build
./eng/scripts/Build-Local.ps1 -DebugBuild
# Docker image build
./eng/scripts/Build-Docker.ps1
./eng/scripts/Build-Docker.ps1 -ServerName "Azure.Mcp.Server"
```
### Testing Commands
@@ -551,14 +551,14 @@ mcp.json configuration for local development:
### Docker Development
```powershell
# Build local Docker image
./eng/scripts/Build-Docker.ps1
./eng/scripts/Build-Docker.ps1 -ServerName "Azure.Mcp.Server"
# Use in mcp.json
{
"servers": {
"Azure MCP Server": {
"command": "docker",
"args": ["run", "-i", "--rm", "--env-file", "/path/to/.env", "azure/azure-mcp:latest"]
"args": ["run", "-i", "--rm", "--env-file", "/path/to/.env", "azure-sdk/azure-mcp:<version-number-of-docker-image>"]
}
}
}