Our instructions for running the PrizmDoc Server Docker container include how to mount the Central Configuration file, but there is no instruction on how to modify config files which aren't located in the root of the container.
Docker allows the user to mount a file from the host system into any part of the container in the same way Central Config is mounted, but there are some extra steps involved to first retrieve the file to be modified. This article will use pcc.config as an example, but these steps will work for any config file that may need to be modified.
The Docker init-config
command only creates the prizm-services-config.yml file on the host machine so the first step is to pull down a copy of the file to be modified from a running container. If the container isn't currently running, please follow the instructions on this page.
Copy config file to host
-
Open an elevated terminal
-
Run the command below:
docker cp <container name or id>:/usr/share/prizm/pccis/ServiceHost/pcc.config ./pcc.config
- Stop and remove (
docker -rm
) the container
Update config values
Bind mount the updated file in a new container
- Add the partial command below to your
docker run
command for PrizmDoc Server
-v ${PWD}/pcc.config:/usr/share/prizm/pccis/ServiceHost/pcc.config
- Start the container
docker run --rm --env ACCEPT_EULA=YES --publish 18681:18681 --volume $(pwd)/config:/config --volume $(pwd)/logs:/logs --volume $(pwd)/data:/data -v $(PWD)/pcc.config:/usr/share/prizm/pccis/ServiceHost/pcc.config--name prizmdoc-server accusoft/prizmdoc-server
Exec into the container to confirm the updates
docker exec -it prizmdoc-server bash
$cd /usr/share/prizm/pccis/ServiceHost/
$cat pcc.config
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article