docker image ubuntu12.04 安装软件源

docker 容器为ubuntu12.04 ,无法添加软件源。

apt-get install python-software-properties software-properties-common

apt-get update

然后安装gcc-4.8 g++-4.8

原文地址:https://www.cnblogs.com/chenhuanBlogs/p/6891749.html