Techiio-author
Started by Swarnalata RoydebApr 21, 2022

Closed
How to overwrite properties files in a docker image?

4 VIEWES 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 4 VIEWES SHARE

anyone tell me.

2 Replies

Techiio-commentatorChris Gill replied 4 months ago0 likes0 dislikes

1. Run docker ps and note the initials of the id of your container.

2. Run docker exec -it <id> <bash or sh>, you will be inside your running container.

3. Go to your jar directory. Place your properties file in config/ as application.properties.

4. Rerun your app, but make sure to do it in the background, so you can exit docker.

Techiio-commentatorSwarnalata Roydeb replied 3 months ago0 likes0 dislikes

thanks for solve this problem

This thread is closed by Swarnalata Roydeb
Techiio-logo

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Developed and maintained by Wikiance
Developed and maintained by Wikiance