Ubuntu中Docker通过Dockerfile构建常用的基础环境
创建Dockerfile目录
root@ubuntu:~# mkdir /dockerfile/cct -p
root@ubuntu:~# cd /dockerfile/cct/
编辑更改源为域名源
root@ubuntu:/dockerfile/cct# vim sources.list
root@ubuntu:/dockerfile/cct# cat sources.list
deb http://mirrors.aliyun.com/ubuntu/ trusty mainrestricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trustymain restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/trusty-backports main restricted universe multiverse
root@ubuntu:/dockerfile/cct#
构建Dockerfile
r