Docker How To Install Curl
Installing curl in a Docker container is easy.
These are the actual commands to install curl on a Debian/Ubuntu based system:
sudo apt update -y
sudo apt install curl -y
Use the following steps to install this in a docker image and container:
Create a project dir:
mkdir test1
cd test1
Create a docker file:
vi DockerfileFROM ubuntu RUN apt update -y RUN apt install curl -y
Build it:
docker build -t mytestimage .
Run your image as a container:
docker run -i -t mytestimage