Totally agree with both of you. I’ve faced the same situation while managing dynamic config files. When the container was up, I just ran:
docker cp ./config.json container_id:/app/config.json
What I really like about docker cp
is how cleanly it integrates into an existing container’s lifecycle. You can tweak or replace files as needed, no dockerfile changes, no image rebuilds, just a quick copy and you’re done. It’s especially useful in environments where you want minimal downtime or need to push quick fixes.