My dockerfile pulls a code repository from a private source which requires private credentials, and right now they are being hardcoded in the dockerfile as Environment variables. Is there a way to send them as either parameters like:
docker run --name myContainer --env [email protected] --env PASS=password sgarcia/myimage
Is this possible?
edit: I'm an idiot, my pseudo code worked. I didn't think it was as simple as taht. Thanks Collin...
Apparently the "pseudo-code" I came up to illustrate what I wanted actually worked for docker ...Thanks Collin
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With