Answers: <p>The Dockerfile provided in the Q&amp;A indicates that the image uses the latest <code>php:7</code> as a base image. One could inspect the version as follows:    </p>
  
  <pre><code>docker run -it php:7 php -v
  </code></pre>
  
  <p><strong>Result</strong></p>
  
  <pre><code>PHP 7.3.11 (cli) (built: Oct 25 2019 02:24:51) ( NTS )
  Copyright (c) 1997-2018 The PHP Group
  Zend Engine v3.3.11, Copyright (c) 1998-2018 Zend Technologies
  </code></pre>
  
  <hr>
  
  <p><strong>How to use an older version of php in conjunction with this container?</strong></p>
  
  <p>It is possible to use a specific version by checking the <a href="https://hub.docker.com/_/php?tab=tags" rel="nofollow noreferrer">tags of php on dockerhub</a>. According to this list, <code>7.2.25</code> is currently the latest <code>7.2</code>. If one changes the from of the Dockerfile to <code>FROM php:7.2.25</code> and build the image again, then <code>7.2.25</code> instead <code>7.3.11</code> will be used inside the container.</p>
  
Answers: CC BY-SA 4.0
Answers: 2019-11-22T11:09:56.783Z
Answers: Therefore the image phpdoc/phpdoc use PHP 7.3.11?
  I could force you to use another version (e.g. 7.2)?
  Or there's some old version of the image phpdoc/phpdoc that uses PHP 7.2?
Answers: saven41
Answers: CC BY-SA 4.0
Answers: 2019-11-22T11:59:15.933Z
Answers: But how can I download the Dockerfile related to the phpdoc/phpdoc image?
Answers: saven41
Answers: CC BY-SA 4.0
Answers: 2019-11-22T10:23:39.020Z
Answers: 2019-11-22T11:24:42.590Z
Answers: 2019-11-22T11:24:42.590Z
Answers: 030
Body: <p>How do I get php version used by docker image <a href="https://hub.docker.com/r/phpdoc/phpdoc" rel="nofollow noreferrer">phpdoc/phpdoc</a>?</p>
  
Tags: <docker><php>
Title: How to find the PHP version that is used by the latest `phpdoc/phpdoc` docker image?
UserDisplayName: saven41
ThreadText: # How to find the PHP version that is used by the latest `phpdoc/phpdoc` docker image?
  
  (Asked by: username_0 on 2019-11-22)
  
  How do I get php version used by docker image [phpdoc/phpdoc](https://hub.docker.com/r/phpdoc/phpdoc)?
  
  **Tags:** docker, php
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-11-22. Score: 1
  
  The Dockerfile provided in the Q&A indicates that the image uses the latest `php:7` as a base image. One could inspect the version as follows:
  
  ```
  docker run -it php:7 php -v
  
  ```
  
  **Result**
  
  ```
  PHP 7.3.11 (cli) (built: Oct 25 2019 02:24:51) ( NTS )
  Copyright (c) 1997-2018 The PHP Group
  Zend Engine v3.3.11, Copyright (c) 1998-2018 Zend Technologies
  
  ```
  
  ---
  
  **How to use an older version of php in conjunction with this container?**
  
  It is possible to use a specific version by checking the [tags of php on dockerhub](https://hub.docker.com/_/php?tab=tags). According to this list, `7.2.25` is currently the latest `7.2`. If one changes the from of the Dockerfile to `FROM php:7.2.25` and build the image again, then `7.2.25` instead `7.3.11` will be used inside the container.
  
  > **Comments:**
  > **username_0**: Therefore the image phpdoc/phpdoc use PHP 7.3.11? I could force you to use another version (e.g. 7.2)? Or there's some old version of the image phpdoc/phpdoc that uses PHP 7.2?  
  > **username_0**: But how can I download the Dockerfile related to the phpdoc/phpdoc image?  
  
  ---
  
  