<p>I created my WordPress website using the Duplicator plugin. Firstly i deployed it on a regular docker container on a machine with IP1, then, after i configured WordPress to work, i did 'docker commit' to it and then push it to my docker hub repo, then, i used this new image with configured WordPress on to deploy wp on my Kubernetes pods, but when i deployed it, the images won't show up and in f12 img <code>src=IP1/bla/bla/bla.jpg</code></p>
<p>I did update my wp_options and wp_posts to my Kubernetes IP, but it still unchanged and show IP1 in src.
What should i do?</p>

Dmytro Lenchuk
<p>There are several different ways in the WordPress ecosystem of scanning the database for instances of an older IP or URL and replace it with a new one.</p>
<p>One is using WP CLI if you're comfortable using your terminal. You install WP CLI and then simply do
wp search-replace old-ip new-ip
You can add --dry-run to show you what it will do without making any actual changes.
There are several nice parameters to exclude tables, and others</p>
<p>Another is using a Plugin like Better Search Replace which basically does the same, but gives you a UI in the WordPress admin.</p>
<p>It's not recommended to do direct queries on the db as suggested in the comment, because some instances of the URL or IP in your case can be stored in a serialized array, that can break if the old and new URLs don't have the exact same length.</p>
<p>The Plugin and wp cli approach ensure this doesn't happen and serialized arrays are correctly updated.</p>
