Running wordpress website php 7.0 on an old Debian, is Docker a solution to my problem?

Hello community,

Before diving in Docker training (just heard about it), I want to be sure that it can solve my problem.

I created a website with wordpress using elementor which needs at least php 7.0. The machine that will host the website uses php 5.6 on Debian 8. The company can’t upgrade the distribution for some reasons.

So, I was wondering if docker can create an image of the website including the php 7.0, and all the dependencies (themes, plugins etc.) and runs the website on that Debian 8 (on which we can’t install php 7 natively).

If this is the case, I will dive in Docker training :smile:

Thanks.