docker-ansible icon indicating copy to clipboard operation
docker-ansible copied to clipboard

2.10-infra cannot use curl (curl_global_trace: symbol not found)

Open naxim92 opened this issue 1 year ago • 0 comments

Cannot use curl. Dockerfile

ARG ansible_version=2.10

FROM cytopia/ansible:$ansible_version-infra
# FROM alpine

RUN apk update --no-cache
RUN apk add --no-cache curl
RUN curl --help

What's the problem:

docker compose run --build --rm -ti ansible;                                                                                                                                                                                             
 => [internal] load build definition from Dockerfile                                                                                                                                                    0.0s 
 => => transferring dockerfile: 1.18kB                                                                                                                                                                  0.0s 
 => [internal] load .dockerignore                                                                                                                                                                       0.0s 
 => => transferring context: 2B                                                                                                                                                                         0.0s 
 => [internal] load metadata for docker.io/cytopia/ansible:2.10-infra                                                                                                                                   1.4s 
 => CACHED [1/4] FROM docker.io/cytopia/ansible:2.10-infra@sha256:064552ec0e9d871a2b47295116bdac7c02c6454893c5ac9be9e90fa4be0072dd                                                                      0.0s 
 => [2/4] RUN apk update --no-cache                                                                                                                                                                     2.9s 
 => [3/4] RUN apk add --no-cache curl                                                                                                                                                                   2.6s 
 => ERROR [4/4] RUN curl --help                                                                                                                                                                         0.6s 
------                                                                                                                                                                                                       
 > [4/4] RUN curl --help:                                                                                                                                                                                    
#0 0.549 Error relocating /usr/bin/curl: curl_global_trace: symbol not found                                                                                                                                 
------                                                                                                                                                                                                       
failed to solve: executor failed running [/bin/sh -c curl --help]: exit code: 127 

naxim92 avatar Sep 22 '23 12:09 naxim92