Skip to content

Commit 75bece2

Browse files
cpresslandCopilot
andauthored
Update src/azure-cli/azure/cli/command_modules/acr/custom.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 6212d93 commit 75bece2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/azure-cli/azure/cli/command_modules/acr

src/azure-cli/azure/cli/command_modules/acr/custom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ def get_docker_command(is_diagnostics_context=False):
397397
docker_command = os.getenv('DOCKER_COMMAND')
398398
else:
399399
docker_command = 'docker'
400-
if shutil.which('podman'):
400+
if not shutil.which('docker') and shutil.which('podman'):
401401
docker_command = 'podman'
402402

403403
from subprocess import PIPE, Popen, CalledProcessError

0 commit comments

Comments
 (0)