Install Docker compose on Xavier AGX

Hello , I Can not install docker compose on my NVIDIA XAVIER AGX ,
If i follow this manual Install Docker Compose | Docker Documentation
there is option to install via Linux

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

1.but the link is not found “Linux-aarch64” is used insted of “Linux-x86_64” if i manually download this version it is not working
2.If i use Alternative install options

sudo pip install docker-compose

I am failing at “Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-zh_4y237/pynacl/”

if i use Pre-release builds
standard_init_linux.go:211: exec user process caused “exec format error”

Is there any solution for that ?

Moving to Jetson AGX Xavier forum for resolution.

Hi,

We can install it with pip3. Could you give it a try?

$ sudo pip3 install docker-compose
WARNING: The directory '/home/nvidia/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting docker-compose
  Downloading docker_compose-1.29.0-py2.py3-none-any.whl (115 kB)
     |████████████████████████████████| 115 kB 477 kB/s 
Collecting docker[ssh]>=5
  Downloading docker-5.0.0-py2.py3-none-any.whl (146 kB)
     |████████████████████████████████| 146 kB 2.2 MB/s 
Collecting texttable<2,>=0.9.0
  Downloading texttable-1.6.3-py2.py3-none-any.whl (10 kB)
Collecting cached-property<2,>=1.2.0
  Downloading cached_property-1.5.2-py2.py3-none-any.whl (7.6 kB)
Collecting distro<2,>=1.5.0
  Downloading distro-1.5.0-py2.py3-none-any.whl (18 kB)
Collecting dockerpty<1,>=0.4.1
  Downloading dockerpty-0.4.1.tar.gz (13 kB)
Collecting websocket-client<1,>=0.32.0
  Downloading websocket_client-0.58.0-py2.py3-none-any.whl (61 kB)
     |████████████████████████████████| 61 kB 6.6 MB/s 
Collecting docopt<1,>=0.6.1
  Downloading docopt-0.6.2.tar.gz (25 kB)
Collecting jsonschema<4,>=2.5.1
  Downloading jsonschema-3.2.0-py2.py3-none-any.whl (56 kB)
     |████████████████████████████████| 56 kB 7.5 MB/s 
Collecting python-dotenv<1,>=0.13.0
  Downloading python_dotenv-0.17.0-py2.py3-none-any.whl (18 kB)
Requirement already satisfied: PyYAML<6,>=3.10 in /usr/lib/python3/dist-packages (from docker-compose) (3.12)
Requirement already satisfied: requests<3,>=2.20.0 in /usr/local/lib/python3.6/dist-packages (from docker-compose) (2.25.1)
Collecting paramiko>=2.4.2
  Downloading paramiko-2.7.2-py2.py3-none-any.whl (206 kB)
     |████████████████████████████████| 206 kB 4.7 MB/s 
Requirement already satisfied: six>=1.3.0 in ./.local/lib/python3.6/site-packages (from dockerpty<1,>=0.4.1->docker-compose) (1.15.0)
Collecting pyrsistent>=0.14.0
  Downloading pyrsistent-0.17.3.tar.gz (106 kB)
     |████████████████████████████████| 106 kB 8.7 MB/s 
Requirement already satisfied: importlib-metadata in /usr/local/lib/python3.6/dist-packages (from jsonschema<4,>=2.5.1->docker-compose) (3.4.0)
Requirement already satisfied: setuptools in /usr/local/lib/python3.6/dist-packages (from jsonschema<4,>=2.5.1->docker-compose) (49.6.0)
Requirement already satisfied: attrs>=17.4.0 in /usr/lib/python3/dist-packages (from jsonschema<4,>=2.5.1->docker-compose) (17.4.0)
Requirement already satisfied: pynacl>=1.0.1 in /usr/lib/python3/dist-packages (from paramiko>=2.4.2->docker[ssh]>=5->docker-compose) (1.1.2)
Collecting cryptography>=2.5
  Downloading cryptography-3.4.7-cp36-abi3-manylinux2014_aarch64.whl (3.1 MB)
     |████████████████████████████████| 3.1 MB 7.5 MB/s 
Collecting bcrypt>=3.1.3
  Downloading bcrypt-3.2.0-cp36-abi3-manylinux2014_aarch64.whl (56 kB)
     |████████████████████████████████| 56 kB 9.7 MB/s 
Collecting cffi>=1.1
  Downloading cffi-1.14.5-cp36-cp36m-manylinux2014_aarch64.whl (206 kB)
     |████████████████████████████████| 206 kB 9.4 MB/s 
Collecting pycparser
  Downloading pycparser-2.20-py2.py3-none-any.whl (112 kB)
     |████████████████████████████████| 112 kB 11.4 MB/s 
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests<3,>=2.20.0->docker-compose) (2018.1.18)
Requirement already satisfied: idna<3,>=2.5 in /usr/lib/python3/dist-packages (from requests<3,>=2.20.0->docker-compose) (2.6)
Requirement already satisfied: chardet<5,>=3.0.2 in /usr/lib/python3/dist-packages (from requests<3,>=2.20.0->docker-compose) (3.0.4)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/lib/python3/dist-packages (from requests<3,>=2.20.0->docker-compose) (1.22)
Requirement already satisfied: typing-extensions>=3.6.4 in ./.local/lib/python3.6/site-packages (from importlib-metadata->jsonschema<4,>=2.5.1->docker-compose) (3.7.4.3)
Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.6/dist-packages (from importlib-metadata->jsonschema<4,>=2.5.1->docker-compose) (3.4.0)
Building wheels for collected packages: dockerpty, docopt, pyrsistent
  Building wheel for dockerpty (setup.py) ... done
  Created wheel for dockerpty: filename=dockerpty-0.4.1-py3-none-any.whl size=16605 sha256=ce21f6e99c99b59e0160227ade37afce2e16d128c98a9731f0b473d9d22048f9
  Stored in directory: /tmp/pip-ephem-wheel-cache-kbsblr_h/wheels/61/8f/e3/247046231ee138b48be905e4a748d570630e1f3ec24632b00b
  Building wheel for docopt (setup.py) ... done
  Created wheel for docopt: filename=docopt-0.6.2-py2.py3-none-any.whl size=13705 sha256=6f8c487e99579ee0371b6d1e121184e79c6b155fc804ce412d6ff2fd22fa22d7
  Stored in directory: /tmp/pip-ephem-wheel-cache-kbsblr_h/wheels/3f/2a/fa/4d7a888e69774d5e6e855d190a8a51b357d77cc05eb1c097c9
  Building wheel for pyrsistent (setup.py) ... done
  Created wheel for pyrsistent: filename=pyrsistent-0.17.3-cp36-cp36m-linux_aarch64.whl size=97320 sha256=73b5afce4450f5d2721b87370b79029adbdd11b74eaa78b2a55146a54e2269b0
  Stored in directory: /tmp/pip-ephem-wheel-cache-kbsblr_h/wheels/34/13/19/294da8e11bce7e563afee51251b9fa878185e14f4b5caf00cb
Successfully built dockerpty docopt pyrsistent
Installing collected packages: pycparser, cffi, websocket-client, cryptography, bcrypt, pyrsistent, paramiko, docker, texttable, python-dotenv, jsonschema, docopt, dockerpty, distro, cached-property, docker-compose
  Attempting uninstall: cryptography
    Found existing installation: cryptography 2.1.4
    Uninstalling cryptography-2.1.4:
      Successfully uninstalled cryptography-2.1.4
Successfully installed bcrypt-3.2.0 cached-property-1.5.2 cffi-1.14.5 cryptography-3.4.7 distro-1.5.0 docker-5.0.0 docker-compose-1.29.0 dockerpty-0.4.1 docopt-0.6.2 jsonschema-3.2.0 paramiko-2.7.2 pycparser-2.20 pyrsistent-0.17.3 python-dotenv-0.17.0 texttable-1.6.3 websocket-client-0.58.0

Thanks.

1 Like

It doesn’t work , it is missing depencies
but i allready found solution

sudo apt install python3-pip

sudo apt-get install -y libffi-dev
sudo apt-get install -y python-openssl
sudo apt-get install libssl-dev

sudo pip3 install docker-compose

1 Like