azure-dev icon indicating copy to clipboard operation
azure-dev copied to clipboard

[Issue] when docker is missing, could `azd up` suggest to use remoteBuild: true ?

Open jfomhover opened this issue 3 months ago • 2 comments

  • [x] Make sure you've installed the latest version using instructions

Output from azd version azd version 1.18.2 (commit a7b2bdc861f0616438327854f11169a08fdfec96)

Describe the bug Using azd up to provision a containerapp, pretty standard, with a Dockerfile. In my setup, I didn't have docker running, so I saw the exception:

ERROR: error executing step command 'package --all': required external tools are missing:
 - error checking for external tool Docker: the Docker daemon is not running, please start the Docker service: exit code: 1, stdout: , stderr: error during connect: Get "http://%2F%2F.%2Fpipe%2FdockerDesktopLinuxEngine/v1.51/containers/json": open //./pipe/dockerDesktopLinuxEngine: The system cannot find the file specified.

To Reproduce

  1. azd up a containerapp without docker running

Expected behavior I'd like if the error could suggest using remoteBuild: true in the azure.yaml as an alternative.

services:
  sandbox-agent:
    project: src/sandbox_agent
    host: containerapp
    language: python
    docker:
      path: Dockerfile
      remoteBuild: true  # adding this unblocks me

Environment Information on your environment: * VScode with python 3.31

jfomhover avatar Sep 12 '25 16:09 jfomhover

@kristenwomack @tg-msft @wbreza what do you think of guiding the user towards remoteBuild recommendation?

rajeshkamal5050 avatar Nov 03 '25 18:11 rajeshkamal5050

azd doctor extension has a command to do this - azd doctor configure remote-build

spboyer avatar Dec 17 '25 20:12 spboyer