How to update wordpress on docker

后端 未结 5 546
再見小時候
再見小時候 2021-02-06 07:36

I\'m running a php-fpm wordpress container.

The wordpress source files are mounted in a named volume "wordpress" shared with the Nginx container.

Everyth

5条回答
  •  一向
    一向 (楼主)
    2021-02-06 08:28

    My answer applied to the official docker wordpress image. So probably off topic but might help someone.

    If you are using docker-compose you can pull the latest image using this command.

    docker pull wordpress
    

    I believe this will update your core docker image. Any other local project which you docker-compose up -d with this yml image setting as this will use the latest update.

      services:
        wordpress:
          image: wordpress:latest
    

    If you currently running the image will you need to docker-compose down and docker-compose up -d to invoke the update.

提交回复
热议问题