Docker Community Forums

Share and learn in the Docker community.

ERROR: error fetching: fatal: unable to find remote helper for 'https'

Hi all

When running docker-compose up on this docker-compose.yml file:

version: "3.7"

services:
  test:
    build: https://github.com/containous/whoami.git
    container_name: "test"

I get this error:

Building test

ERROR: error fetching: fatal: unable to find remote helper for 'https'

: exit status 128

I’m running from a Raspberry Pi with 64bit Ubuntu and I can successfully do the following:

git clone https://github.com/containous/whoami.git

and

docker build https://github.com/containous/whoami.git

The problem only occurs when trying to build with docker-compose. I haven’t been able to find a solution on Google, and the only indication I can find is that the error somehow seems to be related to Git. Since Git works on my machine I’m guessing that it is related to a docker-compose configuration somehow.

Any suggestions on this would be of great help.

My Docker environment is:

Docker version 18.09.9, build 1752eb3
docker-compose version 1.25.4, build unknown

Thanks in advance

Lasse

Just a little update.

It turns out that running docker-compose up on the docker-compose.yml file on an ordinary state-of-the-art laptop (e.g. Macbook Pro or Windows PC) works as expected - I don’t get any errors.

This makes me think the problem could be one of two:

  1. The fact that my OS installation is (Ubuntu Server 64 bit 19.10 - https://ubuntu.com/download/raspberry-pi)

  2. I installed docker-compose through pip

Problem solved!

It turned out that I had two instances of docker-compose installed. One with pip and one with the Ubuntu “snap world”. Even though I removed the pip instance it still didn’t work. I assume something was configured wrongly or overwritten when installing the extra docker-compose instance (I had no reason to install two instances - simply just a mistake on my side during the original installation).

What I did:

  1. completely removed docker and docker-compose from the OS (incl. the snap packages)

  2. started over with the official docker installation (https://docs.docker.com/install/linux/docker-ce/ubuntu/ - choosing the arm64 architecture)

  3. Installed docker-compose through pip sudo pip install docker-compose (https://docs.docker.com/compose/install/)

For now it all works :slight_smile: