Home > Software design >  I am unable to upgrade my PHP version in my docker wordpress installation
I am unable to upgrade my PHP version in my docker wordpress installation

Time:10-26

I am trying to move my existing multisite network to the Docker/Kubernetes setup for easy backup and management. I have an environment setup at

MYSQL : 5.7.2

PHPMYADMIN: Latest

WordPress: 5.6 (the PHP version in this installation is 7.3 which I need to update) I want to upgrade to PHP 8.0.0

I was suggested to use a docker file which I did, --> enter image description here

No need of any correction.

Note that you can use docker instead of podman, if you prefer.

Works also with this simple docker-compose file:

version: "3.9"
services:
  wordpress:
    build:
      context: "./"
      dockerfile: Dockerfile
    ports:
      - "8000:80"

sudo docker-compose up.

CodePudding user response:

Actually you should not try to update php inside a docker container. Instead find out how the container is built, then build one that contains the php version you desire. This will keep the image simple and small.

  • Related