Azure / azure-dev

A developer CLI that reduces the time it takes for you to get started on Azure. The Azure Developer CLI (azd) provides a set of developer-friendly commands that map to key stages in your workflow - code, build, deploy, monitor, repeat.
https://aka.ms/azd
MIT License
393 stars 187 forks source link

[Issue] azd up or deploy hangs when Docker Desktop is outdated without any feedback #4045

Open anfibiacreativa opened 2 months ago

anfibiacreativa commented 2 months ago

Output from azd version Run azd version and copy and paste the output here: 1.9.3 (commit e1624330dcc7dde440ecc1eda06aac40e68aa0a3)

Describe the bug azd up or azd deploy hangs without any output message on Docker output, if Docker desktop is outdated.

To Reproduce Run azd up or azd deploy (the docker desktop version needs to be out of date). Bicep gets initialized followed by Docker output heading without any packaging prints. The process hangs without any other feedback to the developer.

Expected behavior The terminal outputs exception information and auto-aborts the process.

Environment Information on your environment: Version: 1.91.0-insider Commit: 0da59bdde2339d6ba632524dc8f3fb6f4b8a2bcb Electron: 29.4.0 ElectronBuildId: 9593362 Chromium: 122.0.6261.156 Node.js: 20.9.0 V8: 12.2.281.27-electron.0 OS: Darwin arm64 23.5.0

repro'ed in iterm2 Build 3.5.1 OS is 14.5 (23F79)

Current docker versions after upgrade (it was one below) Engine: 26.1.4 Compose: v2.27.1-desktop.1 Credential Helper: v0.8.2 Kubernetes: v1.29.2

Additional context If Docker is sending some exception, it should be captured and shown in the terminal.

rajeshkamal5050 commented 2 months ago

@vhvb1989 can you try reproducing this?

vhvb1989 commented 2 months ago

This is happening on MacOS, @rajeshkamal5050 (Darwin arm64) maybe @weikanglim or @ellismg can help here.