curl: try 'curl --help' or 'curl --manual' for more information
getting the above error in docker build.
Dockerfile:
FROM curlimages/curl:7.86.0
want to setup cURL inside docker container.
How to you run docker build
?
# from the directory containing Dockerfile
docker build -t mycurl .
Sending build context to Docker daemon 2.048kB
Step 1/1 : FROM curlimages/curl:7.86.0
7.86.0: Pulling from curlimages/curl
213ec9aee27d: Already exists
e9574dad2c34: Pull complete
a2377c20b9b6: Pull complete
d5ee1ea5a035: Pull complete
674a88369049: Pull complete
a5f4f3bb1686: Pull complete
d097d2aac947: Pull complete
4a3b312c75a7: Pull complete
3dc9c808db58: Pull complete
baca2edfad05: Pull complete
e3359ad5ca0a: Pull complete
Digest: sha256:cfdeba7f88bb85f6c87f2ec9135115b523a1c24943976a61fbf59c4f2eafd78e
Status: Downloaded newer image for curlimages/curl:7.86.0
---> ab35d809acc4
Successfully built ab35d809acc4
Successfully tagged mycurl:latest
Then, you can use it just as you would with curl binary:
docker run -ti mycurl https://www.stackoverflow.com
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.