snowflakedb/snowflake-cli

SNOW-1444835: snow spcs image-registry login should give functional error if docker is not installed

sfc-gh-cconner opened this issue · 0 comments

SnowCLI version

Snowflake CLI version: 2.3.1

Python version

Python 3.10.12

Platform

macOS-14.4.1-arm64-arm-64bit

What happened

If you try to run this command:

snow spcs image-registry login

And docker is not installed, you get this error which does not tell you what is wrong:

`C:\Users\chris\anaconda3\Lib\site-packages\snowflake\connector\config_manager.py:344: UserWarning: Bad owner or permissions on C:\Users\chris\AppData\Local\snowflake\config.toml
warn(f"Bad owner or permissions on {str(filep)}{chmod_message}")

An unexpected exception occurred. Use --debug option to see the traceback. Exception message:

[WinError 2] The system cannot find the file specified`

Can we do a check to confirm the docker command is there and give a better message if it's not?

Console output

No response

How to reproduce

Run the image registry login command on a system that doesn't have docker.