docker-compose install in Linux

Published on Aug. 22, 2023, 12:11 p.m.

Linux下安装docker-compose

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

sudo chmod +x /usr/local/bin/docker-compose

sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

docker-compose –version

相关链接
https://docs.docker.com/compose/install/

出现错误

Error loading Python lib ‘/tmp/_MEIlEZrYw/libpython3.7m.so.1.0’: dlopen: libcrypt.so.1: cannot open shared object file: No such file or directory

解决

sudo pacman -S libxcrypt-compat

相关链接

https://stackoverflow.com/questions/71319730/error-loading-python-lib-tmp-meir5krcn-libpython3-7m-so-1-0-dlopen-libcryp