diff --git a/shub/image/utils.py b/shub/image/utils.py
index 33003fc..987491e 100644
--- a/shub/image/utils.py
+++ b/shub/image/utils.py
@@ -15,7 +15,7 @@ from shub.exceptions import (
 )
 
 
-DEFAULT_DOCKER_VERSION = '1.17'
+DEFAULT_DOCKER_API_VERSION = '1.17'
 STATUS_FILE_LOCATION = '.releases'
 _VALIDSPIDERNAME = re.compile('^[a-z0-9][-._a-z0-9]+$', re.I)
 
@@ -96,7 +96,7 @@ def get_docker_client(validate=True):
             verify=apply_path_fun('ca.pem'),
             assert_hostname=False)
         docker_host = docker_host.replace('tcp://', 'https://')
-    version = os.environ.get('DOCKER_VERSION', DEFAULT_DOCKER_VERSION)
+    version = os.environ.get('DOCKER_API_VERSION', DEFAULT_DOCKER_API_VERSION)
     client = docker_client_cls(base_url=docker_host,
                                version=version,
                                tls=tls_config)

shub image commands are feeding wrong DOCKER_VERSION env var to docker client
I tried to run `shub image build` command on Circle CI by following their docker building instructions described here

https://circleci.com/docs/2.0/building-docker-images/

So basically it's docker image `docker:17.05.0-ce-git`, and you can use the docker inside the container. However, the problem is, `DOCKER_VERSION` in the container is set to `17.05.0-ce`, which is not supported by docker python client. After looking into details, it seems the `version` argument for docker python client is actually the API version. And the `DOCKER_VERSION` is the version of docker client.

https://docs.docker.com/engine/reference/commandline/cli/

> DOCKER_API_VERSION The API version to use (e.g. 1.19)

With that, if you do

```bash
apk add --no-cache py-pip=9.0.0-r1
pip install shub
```

Login your shub, setup your local shub files, and run

```bash
shub image build -v
```

then you will see error like this

```
Error: 
Detected error connecting to Docker daemon's host.

Please ensure that you have Docker installed, configured and running locally,
that's essential for running shub image command. To check that run command

    docker version

and check its output: it should contain Docker client and server versions and
should not contain any errors.

You can learn about Docker at https://www.docker.com/.
```

And if you try to upgrade docker to 2.0

```bash
pip install 'docker>2.0,<3.0'
```

Then it will be another error for parsing the docker api version

```
shub image build -v
Traceback (most recent call last):
  File "/usr/bin/shub", line 11, in <module>
    sys.exit(cli())
  File "/usr/lib/python2.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python2.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/shub/image/build.py", line 45, in cli
    build_cmd(target, version, skip_tests, filename=filename)
  File "/usr/lib/python2.7/site-packages/shub/image/build.py", line 51, in build_cmd
    client = utils.get_docker_client()
  File "/usr/lib/python2.7/site-packages/shub/image/utils.py", line 102, in get_docker_client
    tls=tls_config)
  File "/usr/lib/python2.7/site-packages/docker/api/client.py", line 158, in __init__
    if utils.version_lt(self._version, MINIMUM_DOCKER_API_VERSION):
  File "/usr/lib/python2.7/site-packages/docker/utils/utils.py", line 153, in version_lt
    return compare_version(v1, v2) > 0
  File "/usr/lib/python2.7/site-packages/docker/utils/utils.py", line 142, in compare_version
    s1 = StrictVersion(v1)
  File "/usr/lib/python2.7/distutils/version.py", line 40, in __init__
    self.parse(vstring)
  File "/usr/lib/python2.7/distutils/version.py", line 107, in parse
    raise ValueError, "invalid version number '%s'" % vstring
ValueError: invalid version number '17.05.0-ce'
```

In the end, it seems like we are passing wrong docker client version here to the api version. I will create a PR addressing this issue shortly by using `DOCKER_API_VERSION` instead of `DOCKER_VERSION`
diff --git a/tests/image/test_utils.py b/tests/image/test_utils.py
index 0012549..1d77ef5 100644
--- a/tests/image/test_utils.py
+++ b/tests/image/test_utils.py
@@ -47,7 +47,7 @@ class ReleaseUtilsTest(TestCase):
             base_url=None, tls=None, version='1.17')
         # set basic test environment
         os.environ['DOCKER_HOST'] = 'http://127.0.0.1'
-        os.environ['DOCKER_VERSION'] = '1.18'
+        os.environ['DOCKER_API_VERSION'] = '1.18'
         assert get_docker_client()
         client_mock.assert_called_with(
             base_url='http://127.0.0.1', tls=None, version='1.18')

pip install -e .[dev]
parse_log_pytest
requirements.txt
pytest flake8 coverage mock
apt-get update apt-get install -y gcc
3.9
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
backports.ssl_match_hostname==3.5.0.1
click==6.6
coverage==7.8.0
docker-py==1.10.6
docker-pycreds==0.2.1
exceptiongroup==1.2.2
flake8==7.2.0
iniconfig==2.1.0
ipaddress==1.0.17
mccabe==0.7.0
mock==5.2.0
packaging==24.2
pluggy==1.5.0
pycodestyle==2.13.0
pyflakes==3.3.1
pytest==8.3.5
PyYAML==3.12
requests==2.10.0
retrying==1.3.3
scrapinghub==1.9.0
-e git+https://github.com/scrapinghub/shub.git@b2a2d56a1a836735a63d41846b8ddfc094c0aafa#egg=shub
six==1.10.0
tomli==2.2.1
tqdm==4.11.2
websocket_client==0.37.0

name: shub
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=3.0.16=h5eee18b_0
  - pip=25.0=py39h06a4308_0
  - python=3.9.21=he870216_1
  - readline=8.2=h5eee18b_0
  - setuptools=75.8.0=py39h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - tzdata=2025a=h04d1e81_0
  - wheel=0.45.1=py39h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - backports-ssl-match-hostname==3.5.0.1
      - click==6.6
      - coverage==7.8.0
      - docker-py==1.10.6
      - docker-pycreds==0.2.1
      - exceptiongroup==1.2.2
      - flake8==7.2.0
      - iniconfig==2.1.0
      - ipaddress==1.0.17
      - mccabe==0.7.0
      - mock==5.2.0
      - packaging==24.2
      - pluggy==1.5.0
      - pycodestyle==2.13.0
      - pyflakes==3.3.1
      - pytest==8.3.5
      - pyyaml==3.12
      - requests==2.10.0
      - retrying==1.3.3
      - scrapinghub==1.9.0
      - six==1.10.0
      - tomli==2.2.1
      - tqdm==4.11.2
      - websocket-client==0.37.0
prefix: /opt/conda/envs/shub

tests/image/test_utils.py::ReleaseUtilsTest::test_get_docker_client
tests/image/test_utils.py::ReleaseUtilsTest::test_format_image_name tests/image/test_utils.py::ReleaseUtilsTest::test_get_credentials tests/image/test_utils.py::ReleaseUtilsTest::test_get_image_registry tests/image/test_utils.py::ReleaseUtilsTest::test_get_project_dir tests/image/test_utils.py::StatusUrlsTest::test_load_status_url tests/image/test_utils.py::StatusUrlsTest::test_store_status_url
shub/image/utils.py
shub/image/utils.py