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 USER=user@email.com --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...