Passing Tomcat parameters to Docker

后端 未结 2 2159
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-10 01:01

I am new to Docker and I have a question that I can\'t seem to find the answer to. I am taking a Docker image (consol/tomcat-7.0) and wrote a Dockerfile that loads this image, c

2条回答
  •  一生所求
    2021-02-10 01:32

    There are at least two options I can think of:

    • If server.xml supports environment variables, you could pass database connection details to the container via --env or even --env-file. Note that this has certain security implications.
    • Another option would be to mount server.xml for a particular instance into the container via --volume.

提交回复
热议问题