Making a karaf/docker service read a configuration file -
starting io8 maven archetype, i'm setting docker container containing karaf container containing cxf restful web service.
i want read file when starts parameterizes it. what's procedure setting (a) docker container can receive config file when launched, , (b) finding file inside?
to provide configuration file container can use following: docker run -d -v /path/to/your/config.file:/path/inside/the/container/config.file yourimage
for more information please refer official documentation on how use volumes.
Comments
Post a Comment