Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
285 views
in Technique[技术] by (71.8m points)

How to install a newer version of curl on a Docker base image shipped with an old version of curl please?

Small question regarding how to install a newer version of curl on an image pre-sipped with an old version of curl

I cannot touch or modify the base image. Currently, the Dockerfile starts with:

FROM customdocker.com/my-organization/must/use/jdk/11:latest as BUILDER

And going inside the container, simple curl version will show a very old curl version.

I just want to use a newer one. I don't want to change anything else. Hence, very naive, I went to change the Dockerfile by adding:

RUN yum install -y curl

While it is building, when I run the image, and execute a curl, I am left with the same old version of curl.

How to install, override the old version with a newer of my choice please?

Thank you

question from:https://stackoverflow.com/questions/65829465/how-to-install-a-newer-version-of-curl-on-a-docker-base-image-shipped-with-an-ol

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...