古いPHP環境が欲しくなったので。
CentOS 4 イメージ取得
>docker search centos4
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
fatherlinux/centos4-base Centos4, same method as RHEL4 image 5
bdobyns/centos4.6_i386 This is a minimal server installation of 32-… 2
:
>docker pull fatherlinux/centos4-base
コンテナ作成起動
>docker run -it --name centos4 fatherlinux/centos4-base bash
# cat /etc/redhat-release
CentOS release 4.8 (Final)
4.8だったので4.9に上げる
# wget http://vault.centos.org/4.9/CentOS-Base.repo
# mv CentOS-Base.repo /etc/yum.repos.d/
# yum check-update
# yum update
PHP
# php -v
PHP 4.3.9 (cgi) (built: Feb 2 2012 18:49:39)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies