How to install docker-compose on Alpine Linux 3.13

Viewed 2397

I'm trying to install docker-compose on Linux alpine 3.13 following the documentation at https://docs.docker.com/compose/install/

But when I try to install rust it throws the following error:

ERROR: unable to select packages: so:libLLVM-11.so (no such package): required by: rust-1.51.0-r0[so:libLLVM-11.so]

Anyone have any idea of how to fix this?

2 Answers

Since alpine 3.10, if you are in the container:

apk add --update docker-compose

Otherwise, on the dockerfile:

RUN apk add --update docker-compose

Note that this does not install docker, you should have it installed already

This worked for me on Alpine 3.13, you can also search for the packages on the official site.

apk add llvm11-libs --repository=http://dl-cdn.alpinelinux.org/alpine/edge/main
Related