docker-找到php旧版本的Dockerfile

以官方的php:5.3-apache为例
先到https://github.com/docker-library/docs/tree/master/php里,查看README.md的历史记录,可以找到以下内容

5.6.15-fpm: git://github.com/docker-library/php@6e600f59a4405b5066eb78f5f02180212dffd065 5.6/fpm
....
5.6.16-apache: git://github.com/docker-library/php@12d7a6644a420a6e74e2bd57ebaa1c5f014984a3 5.6/apache
5.6-apache: git://github.com/docker-library/php@12d7a6644a420a6e74e2bd57ebaa1c5f014984a3 5.6/apache

其中,5.6.16版本对应的

12d7a6644a420a6e74e2bd57ebaa1c5f014984a3

打开

https://github.com/docker-library/php/tree/12d7a6644a420a6e74e2bd57ebaa1c5f014984a3

image.png

点击5.6(对应的https://github.com/docker-library/php/tree/12d7a6644a420a6e74e2bd57ebaa1c5f014984a3/5.6)

image.png

现在就可以参考官方的Dockerfile的写法了

发布了83 篇原创文章 · 获赞 24 · 访问量 53万+

猜你喜欢

转载自blog.csdn.net/virhuiai/article/details/105360878
今日推荐