How to Prevent WordPress from Automatically Updating in Docker?

0
1
Asked By TechieSam123 On

I'm currently rebuilding a website and I've got it stuck on specific versions of WordPress, PHP, and MySQL. I set everything up in Docker containers using Compose and matched the required versions, but when I start my stack, WordPress automatically updates itself to the latest version (6.8.1) regardless. I really need to stop this from happening. What are the best practices to pin the version, and is there a way to revert back to the previous version now that my database has also updated?

1 Answer

Answered By DockerGuru99 On

To prevent WordPress from auto-updating, it's important to use specific version tags for your Docker images instead of 'latest'. For instance, instead of `wordpress:latest`, you can specify something like `wordpress:6.8.0-php8.3`. This way, Docker will stick to that specific version without pulling a new one during updates. Also, remember this applies to your database containers too, as significant updates can lead to issues. If you share your Docker Compose file, the community could provide more tailored help.

DevDude42 -

I get that! I did that too, but still faced the auto-update issue. I found an odd workaround that uses just the database and CI along with a config file to disable updates, but it's quite convoluted. Let me know if you want the details!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.