Docker Community Forums

Share and learn in the Docker community.

Fails to install docker-compose on Ubuntu 18.0.4

Following official documentation I did:

sudo curl -L "https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

sudo chmod +x /usr/local/bin/docker-compose

Then when I check installation by:

docker-compose --version

I got:

[8024] Error -5 from inflate: (null)
[8024] Error decompressing _codecs_iso2022.cpython-37m-x86_64-linux-gnu.so
Failed to write all bytes for _codecs_iso2022.cpython-37m-x86_64-linux-gnu.so
fwrite: Bad address

Any idea?.
Thank you in advance.

Intenta instalarlo con pip

sudo apt install python-pip
sudo pip install -U docker-compose
sudo chmod +x /usr/local/bin/docker-compose