Jump to content

How to update WordPress & PHP when they are installed by Docker


Go to solution Solved by requinix,

Recommended Posts

I have asked a question here: https://stackoverflow.com/q/79244097/3405291

 

Also, I have shared some of my observations as an answer to the above question here: https://stackoverflow.com/a/79247744/3405291

 

I just decided not to repost my question and my observations here. Please refer to the above links for details.

 

Now, can someone help me with that?  Thanks for your time.

  • Solution
1 hour ago, Megidd said:

I just decided not to repost my question and my observations here. Please refer to the above links for details.

I get that you're saving yourself some effort, but when you tell people "I asked a question somewhere else, go see what it was and try to answer" it's typically going to be taken as an insult.

But I'll answer anyway because it doesn't look very good.

According to what I'm seeing in the Docker Hub page, there is no simple upgrade path once the PHP version is no longer supported. Normal Docker practices would allow it, but this image isn't set up to follow normal Docker practices.
So you'll have to go into the container itself and update it manually - like if it was an actual computer running Alpine Linux and you needed to upgrade it. You can look around for instructions on how to do that.

Which means you should reconsider how this all works. For example, you could convert your existing installation to the "Static image" one that's described in the docs... though you'll have to reverse-engineer some of that process in order to preserve the details of your existing setup. But once that process is done and you've converted to a static deployment, future upgrades seem like they would be as simple as updating image versions in your docker-compose. (And you would then do all updates that way - not from within WP itself.)

  • Like 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.