curl / curl-docker

official docker image for curl
https://curl.se
Other
167 stars 67 forks source link

Use environemnt variables in command #71

Closed es1o closed 2 years ago

es1o commented 2 years ago

Hello. I have a problem because looks like curl doesn't recognize env variables.

E.g.

$ docker run -e "HOST1=vm1.sucharka.pl" --rm curlimages/curl:7.83.1 $HOST1                                                                                                                                    
curl: try 'curl --help' or 'curl --manual' for more information

Is it possible to use ENV variables in curl image or I need to create my own image with /bin/sh entrypoint?

es1o commented 2 years ago

It was a problem with command interpolation in my system. Can be closed.