To fix /usr/bin/curl: curl_mime_type: symbol not found
Errors when trying to run curl in a running alpine pod.
Right solution: Update base alpine image because this is a bigger issue
Quick fix: run Alpine system upgrade (or upgrade libcurl package specifically):
apk update
apk upgrade
apk add -U curl
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz
(1/1) Installing curl (7.58.0-r1)
Executing busybox-1.24.2-r13.trigger
OK: 430 MiB in 145 packages
bash-4.3# curl
Error relocating /usr/bin/curl: curl_mime_type: symbol not found
Error relocating /usr/bin/curl: curl_mime_data: symbol not found
Error relocating /usr/bin/curl: curl_mime_data_cb: symbol not found
Error relocating /usr/bin/curl: curl_mime_name: symbol not found
Error relocating /usr/bin/curl: curl_mime_encoder: symbol not found
Error relocating /usr/bin/curl: curl_mime_headers: symbol not found
Error relocating /usr/bin/curl: curl_mime_init: symbol not found
Error relocating /usr/bin/curl: curl_mime_filedata: symbol not found
Error relocating /usr/bin/curl: curl_mime_free: symbol not found
Error relocating /usr/bin/curl: curl_mime_filename: symbol not found
Error relocating /usr/bin/curl: curl_mime_subparts: symbol not found
Error relocating /usr/bin/curl: curl_mime_addpart: symbol not found
bash-4.3# apk upgrade
Upgrading critical system libraries and apk-tools:
(1/1) Upgrading apk-tools (2.6.8-r1 -> 2.6.9-r0)
Executing busybox-1.24.2-r13.trigger
Continuing the upgrade transaction with new apk-tools:
(1/29) Upgrading musl (1.1.14-r14 -> 1.1.14-r16)
(2/29) Upgrading busybox (1.24.2-r13 -> 1.24.2-r14)
Executing busybox-1.24.2-r14.post-upgrade
...
(9/29) Upgrading libcurl (7.52.1-r2 -> 7.58.0-r1)
...
OK: 427 MiB in 145 packages
bash-4.3# curl
curl: try 'curl --help' or 'curl --manual' for more information
What fix it for me was to do
RUN apk update && apk upgrade
I don't know what negative implications that will bring me but the image built.