
Raspberry pi 3b+ 에 Ubuntu 를 올려서 그 위에 Docker-Compose 를 설치하는 과정에서 마주한 오류...
처음엔 EC2 에 설치하듯이 설치해봤지만
sudo curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
뭐가 안 맞아서 안되는듯 했다.
구글링 중
pip 로 설치하면 된다는 글을 발견하고
https://gist.github.com/vicky-gonsalves/042ae44268975eafee5c1a9af224c33c
Install docker and docker-compose in Ubuntu Server Raspberry pi 4B
Install docker and docker-compose in Ubuntu Server Raspberry pi 4B - docker and docker compose
gist.github.com
https://iotechonline.com/how-to-install-docker-and-docker-compose-on-your-raspberry-pi/
How to install docker and docker-compose on Raspberry Pi - iotechonline
These are the steps on how to install docker and docker-compose on your Raspberry Pi, so you can take advantage of containerization.
iotechonline.com
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y libffi-dev libssl-dev
sudo apt-get install -y python3 python3-pip
sudo apt-get remove -y python-configparser
sudo pip3 install docker-compose
로 설치를 해봤지만

같은 오류를 마주하였다.
보면
Building wheel for cryptography (PEP 517) 에러라는데
처음에는 Building wheel for bcrypt (PEP 517) 에러가 떴어서 어찌어찌 구글링해서 아래 명령어로 해결을 했었는데 이번에 cryptography 가 떠서 이렇게 해결하다간 답이 없겠다 싶었다...
sudo pip3 install -U "bcrypt<4.0.0"
그러던 중
https://github.com/docker/compose/issues/9805
Docker compose installation fail : Failed Building wheel for bcrypt · Issue #9805 · docker/compose
Dear All, I was following the instructions in https://github.com/dmpanch/hassio-rpi4-docker-compose It was working since two weeks ago and today when I started a new installation (corrupted sd) I g...
github.com
이 글을 발견하였는데 중간에 읽어보니

이런 쓰레드를 발견했는데 타고 들어가보니
https://github.com/teslamate-org/teslamate/discussions/2881
Failed to build wheel for bcrypt - can't install docker-compose · teslamate-org/teslamate · Discussion #2881
Fresh install, latest version. I get to 'sudo pip3 -v install docker-compose' on the linked website for setting up docker on raspberry pi (https://dev.to/rohansawant/installing-docker-and-docker-co...
github.com
sudo apt install docker-compose
그저 apt 로 설치하면 정상적으로 된다더라...
저걸로 실행해보니 정말 문제 없이 설치가 잘 되었다.
이미 pip 등등이 깔린 상태로 설치하긴 했는데 굳이 설치를 안해도 됐을 것 같다... (다시 지우고 새로 설치해보긴 귀찮고...)