How to install docker-compose offline?
In situations when installing via pip or as docker container (https://docs.docker.com/compose/install/) is also not an option, the following option can help:
Download the package in a system with connectivity (replace the needed version as required)
wget https://github.com/docker/compose/releases/download/1.24.0/docker-compose-Linux-x86_64
Just rename the package
mv docker-compose-Linux-x86_64 docker-compose
Copy it (ssh) to the required system
To make it executable
sudo mv docker-compose /usr/local/bin/
sudo chmod +x /usr/local/bin/docker-compose
Refer the post for more details: http://muralitechblog.com/how-to-install-docker-compose-offline/
According to the Docker documentation, you can install docker-compose with pip:
Compose can be installed from pypi using pip. If you install using pip, we recommend that you use a virtualenv because many operating systems have python system packages that conflict with docker-compose dependencies.
And pip packages can be installed offline : Python Packages Offline Installation