title: docker-compose Not Working With gcloud: Cannot Find OpenSSL
body: <p>After following the setup instructions for the Artifact Registry in the gcloud CLI, whenever I use docker-compose and I try to fetch an image from a registry, this stack trace appears:</p>
  <pre><code>Pulling **** (europe-west2-docker.pkg.dev/****/****/****:latest)...
  ERROR: gcloud failed to load: /tmp/_MEIsEW5sl/libssl.so.1.1: version `OPENSSL_1_1_1' not found (required by /usr/lib/python3.8/lib-dynload/_ssl.cpython-38-x86_64-linux-gnu.so)
      gcloud_main = _import_gcloud_main()
      import googlecloudsdk.gcloud_main
      from googlecloudsdk.calliope import base
      from googlecloudsdk.calliope import arg_parsers
      from googlecloudsdk.core import log
      from googlecloudsdk.core import properties
      from googlecloudsdk.core import config
      from oauth2client import client
      from oauth2client import transport
      import httplib2
      from httplib2.python3.httplib2 import *
      import ssl
      import _ssl             # if we can't import it, let the error propagate
  
  This usually indicates corruption in your gcloud installation or problems with your Python interpreter.
  
  Please verify that the following is the path to a working Python 2.7 or 3.5+ executable:
      /usr/bin/python3
  
  If it is not, please set the CLOUDSDK_PYTHON environment variable to point to a working Python 2.7 or 3.5+ executable.
  
  If you are still experiencing problems, please reinstall the Cloud SDK using the instructions here:
      https://cloud.google.com/sdk/
  Traceback (most recent call last):
    File &quot;docker/credentials/store.py&quot;, line 80, in _execute
    File &quot;subprocess.py&quot;, line 411, in check_output
    File &quot;subprocess.py&quot;, line 512, in run
  subprocess.CalledProcessError: Command '['/usr/bin/docker-credential-gcloud', 'get']' returned non-zero exit status 1.
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;docker/auth.py&quot;, line 264, in _resolve_authconfig_credstore
    File &quot;docker/credentials/store.py&quot;, line 35, in get
    File &quot;docker/credentials/store.py&quot;, line 93, in _execute
  docker.credentials.errors.StoreError: Credentials store docker-credential-gcloud exited with &quot;&quot;.
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;bin/docker-compose&quot;, line 3, in &lt;module&gt;
    File &quot;compose/cli/main.py&quot;, line 67, in main
    File &quot;compose/cli/main.py&quot;, line 126, in perform_command
    File &quot;compose/cli/main.py&quot;, line 1070, in up
    File &quot;compose/cli/main.py&quot;, line 1066, in up
    File &quot;compose/project.py&quot;, line 615, in up
    File &quot;compose/service.py&quot;, line 356, in ensure_image_exists
    File &quot;compose/service.py&quot;, line 1267, in pull
    File &quot;compose/progress_stream.py&quot;, line 99, in get_digest_from_pull
    File &quot;compose/service.py&quot;, line 1234, in _do_pull
    File &quot;docker/api/image.py&quot;, line 396, in pull
    File &quot;docker/auth.py&quot;, line 48, in get_config_header
    File &quot;docker/auth.py&quot;, line 324, in resolve_authconfig
    File &quot;docker/auth.py&quot;, line 235, in resolve_authconfig
    File &quot;docker/auth.py&quot;, line 281, in _resolve_authconfig_credstore
  docker.errors.DockerException: Credentials store error: StoreError('Credentials store docker-credential-gcloud exited with &quot;&quot;.')
  [14339] Failed to execute script docker-compose
  
  </code></pre>
  <p>I honestly can't understand what is going wrong there. I'm using Ubuntu 20.04 LTS. My system has OpenSSL 1.1.1f installed.</p>