![](https://csdnimg.cn/release/download_crawler_static/88867018/bg4.jpg)
的修改内容,变成一个新的只读的 Image,这非常类似于 git commit 命令。
4 docker 安装与启动
安装 docker
[root@localhost /]# yum -y install docker-io
更改配置文件
[root@localhost /]# vi /etc/sysconfig/docker
other-args 列更改为:other_args="--exec-driver=lxc --selinux-enabled"
启动 docker 服务
[root@localhost /]# service docker start
Starting cgconfig service: [ OK ]
Starting docker: [ OK ]
将 docker 加入开机启动
[root@localhost /]# chkconfig docker on