Catalogue
fix: curl: (48) An unknown option was passed in to libcurl

fix: curl: (48) An unknown option was passed in to libcurl

🌐 日本語で読む

When using an alpine image as the base, RUN curl failed and the following error was output.

1
curl: (48) An unknown option was passed in to libcurl

The cause was a version mismatch between curl and libcurl,
and it was resolved by installing curl-dev.

Reference: https://stackoverflow.com/questions/11678085/curl-48-an-unknown-option-was-passed-in-to-libcurl/41651363#41651363

Dockerfile

1
2
3
4
FROM alpine

# Added the following
RUN apk add --update --no-cache curl-dev

That’s all.
I hope this helps.

fix: curl: (48) An unknown option was passed in to libcurl

https://kenzo0107.github.io/en/2023/04/14/curl-not-match-libcurl-on-alpine/

Author

Kenzo Tanaka

Posted on

2023-04-14

Licensed under