Contents

Install Docker Compose on Ubuntu

For setting up Canvas-lms, I need to get docker-compose setup.

Environment

Ubuntu 18.04.5 LTS

1
2
3
4
5
6
$  lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.5 LTS
Release:	18.04
Codename:	bionic

pip 21.1.1

1
2
$ pip -V
pip 21.1.1 from /home/tato/env1/lib/python3.6/site-packages/pip (python 3.6)

Install

Installing docker-compose via pip requires setuptools_rust./

1
2
3
4
5
6
7
8
$ source ~/env1/bin/activate
(env1) $ pip install docker-compose
...
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-icgd67uv/cryptography/setup.py", line 14, in <module>
        from setuptools_rust import RustExtension
    ModuleNotFoundError: No module named 'setuptools_rust'
1
(env1) $ pip install setuptools_rust

Then done docker-compose install/

1
(env1) $ pip install docker-compose

References

Getting Docker Compose Setup