Skip to navigation
How to overwrite a docker container config file with a given env variables
08.08.17
example: dock run -it -e PASS=bar --name container_name image_name edit the entry point(the last run in your image) run.sh set -e if [ "$PASS" ]; then sed -i -e "s/replaceme/$PASS/" /etc/config_file.ini fi
https://docs.docker.com/engine/reference/commandline/run/
Reply
Anonymous
Information Epoch 1713483041
Silence is golden.
Home
Notebook
Contact us