所以PHUSION:baseimage:最新的意志(目前)使用Ubuntu 16.04。
PHP 5.4版本庫僅適用於Ubuntu 12.04。
這是我如何得到它的工作:
1:啓動基於0.9.9的Phusion(這是基於Ubuntu 12.04)的容器:
docker run phusion/baseimage:0.9.9
2:查找的名稱容器並進入它
3:運行下面的命令:
apt-get update && apt-get install -y python-software-properties software-properties-common
export LC_ALL=en_US.UTF-8
add-apt-repository ppa:ondrej/php5-oldstable
apt-get update
apt-cache policy php5
4:輸出將是:
php5:
Installed: (none)
Candidate: 5.4.45-4+deprecated+dontuse+deb.sury.org~precise+1
Version table:
5.4.45-4+deprecated+dontuse+deb.sury.org~precise+1 0
500 http://ppa.launchpad.net/ondrej/php5-oldstable/ubuntu/ precise/main amd64 Packages
5.3.10-1ubuntu3.25 0
500 http://archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
500 http://archive.ubuntu.com/ubuntu/ precise-security/main amd64 Packages
5.3.10-1ubuntu3 0
500 http://archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
來源
2016-10-28 09:08:15
Oli