Azure / Azure/azure-cli

APK command stopped working on azure-cli 2.64 docker image

Open
#29,827 22 comments 8 reactions 1 assignee Claimed by @bebound View on GitHub
customer-reported Packaging/Mariner question Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### Describe the bug

We use the latest Docker image of Azure-cli to deploy our code in Azure, as from today we are getting the `apk: command not found` when we try to run the `apk add --no-cache vim` command inside the container. The command worked fine until the 2.63 release

### Related command

-

### Errors

```
$ apk add --no-cache vim
bash: apk: command not found
```

### Issue script & Debug output

-

### Expected behavior

When running the apk command I expect to be installed the package (this works in this way in azure-cli 2.63)

### Environment Summary

```
azure-cli 2.64.0

core 2.64.0
telemetry 1.1.0

Dependencies:
msal 1.30.0
azure-mgmt-resource 23.1.1

Python location '/usr/bin/python3.9'
Extensions directory '/root/.azure/cliextensions'

Python (Linux) 3.9.19 (main, Aug 23 2024, 00:07:48)
[GCC 11.2.0]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.
```

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.