After pulling a Docker from the repository, how to change the images files?
docker, nginx
Solution
You can run a shell in the image, with:
docker run -t -i --entrypoint bash paintedfox/nginx-php5
Then change the configuration files as you like. Note the container ID (it appears in the prompt, e.g. `root@9ffa2bafe2bb:/#`), then commit it to a new image:
docker commit 9ffa2bafe2bb my-new-nginx
You can then run the new image (`my-new-nginx`).
Problem
I installed a docker image from the registry by doing. docker pull paintedfox/nginx-php5 Now I wish to make some changes to this nginx's config files to add some domains. I believe the config files are somehow help inside the dockers image, but where is the image? How can I change these config files?