but after run docker compose up , ojdbc11.jar doesnât copy with docker cp in my script with command tag in docker compose !!
please help me to resolved this issue !
thanks
I edited your post to add code blocks. Please, format your posts next time according to the following guide: How to format your forum posts
In short: please, use </> button to share codes, terminal outputs, error messages or anything that can contain special characters which would be interpreted by the MarkDown filter. Use the preview feature to make sure your text is formatted as you would expect it and check your post after you have sent it so you can still fix it.
I donât get it. Where exactly are you trying to use that docker cp? I hope not in the âcommandâ parameter in the compose file. That is for commands running inside the container.
And you donât even need to copy if you can mount as you mount volumes. There are some examples here:
Never copy files into a running container, especially not dependencies. Everything will disappear when you delete the container. You could create your own Dockerfile and build your own image that already has that dependency.
Thanks for taking the time to edit my post and answer my question. i used docker cp for copy oracle driver to confluence container till connect my confluence container to oracle database. i test volume mount but this solution not working , i should used docker cp for copy this jar file (oracle driver) to container! but command tag not working for run script in docker compose ! how i can fix this issue?
I know that solutions and i fix my problem with create custom docker image , but i want to learn how used script in docker compose if necessary!
many thanks for your attention