Curl appears to be missing from mcr.microsoft.com/azure-cli:latest #28581
Labels
Auto-Resolve
Auto resolve by bot
Azure CLI Team
The command of the issue is owned by Azure CLI team
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Possible-Solution
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Similar-Issue
Milestone
Describe the bug
Curl appears to be missing in mcr.microsoft.com/azure-cli:latest alpine I can see it's still in the dockerfile here https://github.com/Azure/azure-cli/blob/dev/alpine.dockerfile#L38
I can install it with apk add
docker run -it mcr.microsoft.com/azure-cli sh
/ # curl
sh: curl: not found
Related command
docker run -it mcr.microsoft.com/azure-cli sh
/ # curl
sh: curl: not found
/ # ls -lah /usr/bin | grep curl #nothing found
/ # ls -lah /usr/local/bin | grep curl #nothing found
curl --version
sh: curl: not found
apk add curl
/ # apk add curl
fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz
(1/7) Installing brotli-libs (1.1.0-r1)
(2/7) Installing c-ares (1.24.0-r1)
(3/7) Installing libunistring (1.1-r2)
(4/7) Installing libidn2 (2.3.4-r4)
(5/7) Installing nghttp2-libs (1.58.0-r0)
(6/7) Installing libcurl (8.5.0-r0)
(7/7) Installing curl (8.5.0-r0)
Executing busybox-1.36.1-r15.trigger
OK: 35 MiB in 57 packages
/ # which curl
/usr/bin/curl
/ #
/ # curl --version
curl 8.5.0 (x86_64-alpine-linux-musl) libcurl/8.5.0 OpenSSL/3.1.4 zlib/1.3.1 brotli/1.1.0 c-ares/1.24.0 libidn2/2.3.4 nghttp2/1.58.0
Release-Date: 2023-12-06
Protocols: dict file ftp ftps gopher gophers http https imap imaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp ws wss
Features: alt-svc AsynchDNS brotli HSTS HTTP2 HTTPS-proxy IDN IPv6 Largefile libz NTLM SSL threadsafe TLS-SRP UnixSockets
/ #
Errors
Curl is missing from the image. I can see it's meant to be added in the dockerfile in this repo though
sh: curl: not found
Issue script & Debug output
no debug required package is missing possible image build issue d
Expected behavior
Curl should be present in the latest image
Environment Summary
/ # az --version
azure-cli 2.58.0
core 2.58.0
telemetry 1.1.0
Dependencies:
msal 1.26.0
azure-mgmt-resource 23.1.0b2
Python location '/usr/local/bin/python'
Extensions directory '/root/.azure/cliextensions'
Python (Linux) 3.11.8 (main, Feb 7 2024, 23:20:20) [GCC 13.2.1 20231014]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.
Additional context
is docker image related not azcli command related.
The text was updated successfully, but these errors were encountered: