Install Docker / or use Play with Docker (https://labs.play-with-docker.com) with Docker Hub free registration.
Create the docker-compose.yml
file, e.g. using cat > docker-compose.yml
Run the containers (WordPress and MySQL):
docker-compose up -d
Check the containers state:
docker ps
Open WordPress in the Web browser: https://localhost:8000