Skip to content

Commit 760d558

Browse files
authored
Merge pull request #121185 from JoeyC-Dev/patch-1
Update alternative container tool feature in container-registry-authentication.md
2 parents 493d5d3 + 88eab7a commit 760d558

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

articles/container-registry/container-registry-authentication.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,25 @@ You can enable the admin user in the Azure portal by navigating your registry, s
170170

171171
![Enable admin user UI in the Azure portal][auth-portal-01]
172172

173+
## Log in with an alternative container tool instead of Docker
174+
In some scenarios, you need to use alternative container tools like `podman` instead of the common container tool `docker`. For example: [Docker is no longer available in RHEL 8 and 9][docker-deprecated-redhat-8-9], so you have to switch your container tool.
175+
176+
The default container tool is set to `docker` for `az acr login` commands. If you don't set the default container tool and the `docker` command is missing in your environment, the following error will be popped:
177+
```bash
178+
az acr login --name <acrName>
179+
2024-03-29 07:30:10.014426 An error occurred: DOCKER_COMMAND_ERROR
180+
Please verify if Docker client is installed and running.
181+
```
182+
183+
To change the default container tool that the `az acr login` command uses, you can set the environment variable `DOCKER_COMMAND`. For example:
184+
```azurecli
185+
DOCKER_COMMAND=podman \
186+
az acr login --name <acrName>
187+
```
188+
189+
> [!NOTE]
190+
> You need the Azure CLI version 2.59.0 or later installed and configured to use this feature. Run `az --version` to find the version. If you need to install or upgrade, see [Install Azure CLI][install-azure-cli].
191+
173192
## Next steps
174193
175194
* [Push your first image using the Azure CLI](container-registry-get-started-azure-cli.md)
@@ -178,3 +197,9 @@ You can enable the admin user in the Azure portal by navigating your registry, s
178197
179198
<!-- IMAGES -->
180199
[auth-portal-01]: ./media/container-registry-authentication/auth-portal-01.png
200+
201+
<!-- EXTERNAL LINKS -->
202+
[docker-deprecated-redhat-8-9]: https://access.redhat.com/solutions/3696691
203+
204+
<!-- INTERNAL LINKS -->
205+
[install-azure-cli]: /cli/azure/install-azure-cli

0 commit comments

Comments
 (0)