Docker 安装部署
Docker 安装部署
安装参考文档:https://docs.docker.com/engine/installation/linux/centos/
1、系统环境
[[email protected] ~]# cat /etc/redhat-release
CentOS release 6.6 (Final)
[[email protected] ~]# uname -a
Linux crazy-acong 2.6.32-504.el6.x86_64 #1 SMP Wed Oct 15 04:27:16 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
[[email protected] ~]# ifconfig eth0 | grep "inet addr" | awk -F : '{print $2}'| awk '{print $1}'
192.168.1.105
2、使用 EPEL 库安装 Docker
[[email protected] ~]# yum install -y http://mirrors.yun-idc.com/epel/6/i386/epel-release-6-8.noarch.rpm
[[email protected] ~]# yum install -y docker-io
3、启动docker 服务端
[[email protected] ~]# /etc/init.d/docker start
4、从网易镜像源下载一个镜像到docker中
可以在网易的docker镜像站搜索对应的镜像 https://c.163.com/hub#/m/home/, 例如我需要搜索 centos
[[email protected] ~]# docker pull hub.c.163.com/library/centos:6.8
5、查看下载下来的 docker 镜像
[[email protected]g ~]# docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
hub.c.163.com/library/centos centos6.8 80e46367f846 7 months ago 194.5 MB