Skip to content

SSL error while trying to pull image on Ubuntu #1319

Closed

Description

@phlegx

With the current version (1.2.0 with Docker 1.6.0 on ubuntu trusty ) when trying to run the image like:

docker-compose run application_name

I'm getting the following error.

HTTPS endpoint unresponsive and insecure mode isn't enabled

The SSL certificate however is valid and the URL is correct. This is my very basic configuration:

web:
   image: example.com/application_name:latest

With docker run it pulls the image just fine:

docker run example.com/application_name:latest

Any ideas what might be causing this?

Activity

  1. phlegx commented on Apr 22, 2015

    @phlegx
    Author

    Tried out also the 1.2.0rc4 version. Still the same problem it seems.

    I also tried the flag

    --allow-insecure-registry
    

    as suggested here: #1136, but unfortunately that didn't resolve the issue either.

  2. antoineco commented on May 28, 2015

    @antoineco

    I use 1.3.0rc1 and the error persists. Shouldn't it be fixed by 1dccd58?

    The --allow-insecure-ssl flag works but is definitely not a solution, we use a certificate signed from Comodo.

    Pulling web (docker.example.com/web:master)...
    /tmp/_MEIt87UgO/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
    Traceback (most recent call last):
      File "<string>", line 3, in <module>
      File "/code/build/docker-compose/out00-PYZ.pyz/compose.cli.main", line 32, in main
      File "/code/build/docker-compose/out00-PYZ.pyz/compose.cli.docopt_command", line 21, in sys_dispatch
      File "/code/build/docker-compose/out00-PYZ.pyz/compose.cli.command", line 34, in dispatch
      File "/code/build/docker-compose/out00-PYZ.pyz/compose.cli.docopt_command", line 24, in dispatch
      File "/code/build/docker-compose/out00-PYZ.pyz/compose.cli.command", line 66, in perform_command
      File "/code/build/docker-compose/out00-PYZ.pyz/compose.cli.main", line 470, in up
      File "/code/build/docker-compose/out00-PYZ.pyz/compose.project", line 230, in up
      File "/code/build/docker-compose/out00-PYZ.pyz/compose.service", line 333, in execute_convergence_plan
      File "/code/build/docker-compose/out00-PYZ.pyz/compose.service", line 380, in recreate_container
      File "/code/build/docker-compose/out00-PYZ.pyz/compose.service", line 209, in create_container
      File "/code/build/docker-compose/out00-PYZ.pyz/compose.service", line 237, in ensure_image_exists
      File "/code/build/docker-compose/out00-PYZ.pyz/compose.service", line 707, in pull
      File "/code/build/docker-compose/out00-PYZ.pyz/docker.client", line 876, in pull
      File "/code/build/docker-compose/out00-PYZ.pyz/docker.auth.auth", line 59, in resolve_repository_name
      File "/code/build/docker-compose/out00-PYZ.pyz/docker.auth.auth", line 38, in expand_registry_url
    docker.errors.DockerException: HTTPS endpoint unresponsive and insecure mode isn't enabled.
    
  3. aanand commented on Jul 23, 2015

    @aanand

    Fixed by #1736 and released in Compose 1.4.0 RC2.

  4. MrMMorris commented on Jul 27, 2015

    @MrMMorris

    @aanand
    $ docker-compose -v
    docker-compose version: 1.4.0rc2

    $ pip list | grep docker-py
    docker-py (1.3.1)

    /Library/Python/2.7/site-packages/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.

    Am I missing something?

  5. aanand commented on Jul 28, 2015

    @aanand

    @MrMMorris I presume you installed Compose with Pip. What's your Python version? You'll get that error if you're on a version older than 2.7.9, because the ssl module is insecure (see the linked documentation).

  6. MrMMorris commented on Jul 28, 2015

    @MrMMorris

    @aanand my python version was 2.7.6. Now:

    $ python -V
    Python 2.7.10
    

    That didn't solve it initially, so I tried reinstalling compose and that worked 👍

    Thanks for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions