This question is related to this one and this one. I am trying to install and run docker(-compose) in a newly created python virtual environment:
$ mkdir temp_venv
$ cd temp_venv
$ virtualenv venv
$ source venv/bin/activate
(venv) $ pip list
pip (8.1.2)
setuptools (21.2.2)
wheel (0.29.0)
docker-compose installs successfully through pip, but when I try to install docker the following error is thrown:
(venv) $ pip install docker
Collecting docker
Could not find a version that satisfies the requirement docker (from versions: )
No matching distribution found for docker
Trying to install with the --pre flag set returns the same error. Also, when trying to run docker in venv the following error is given:
WARNING: The "bootstrap" service specifies a port on the host. If multiple containers for this service are created on a single host, the port will clash.
ERROR: Couldn't connect to Docker daemon. You might need to install Docker:
Installing docker-compose with pip2 gives the same error (the same goes for docker:
Collecting docker
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out. (read timeout=15)",)': /simple/docker/
Could not find a version that satisfies the requirement docker (from versions: )
No matching distribution found for docker
).