CentOS 6.4にDockerをインストール


Docker公式ドキュメントに従ってインストールし、問題点を記録します.
自分がepelをインストールしたと思い、インストールコマンドを直接実行しました.
yum install docker-io

エラーは次のとおりです.
[root@docker conf]# yum search docker-io
Loaded plugins: fastestmirror, refresh-packagekit, security
Determining fastest mirrors
 * base: centos.ustc.edu.cn
 * epel: mirrors.yun-idc.com
 * extras: centos.ustc.edu.cn
 * updates: centos.ustc.edu.cn
base                | 3.7 kB     00:00     
epel                | 3.7 kB     00:00     
epel/primary_db     | 3.9 MB     00:01     
extras              | 3.4 kB     00:00     
google64            |  951 B     00:00     
updates             | 3.4 kB     00:00     
updates/primary_db  | 3.7 MB     00:00     
epel/pkgtags        | 1.0 MB     00:00     
Warning: No matches found for: docker-io
No Matches found

epelの問題に違いないので、再インストールし、このリンクに従って[転送ドア]をインストールします.
問題の原因:remiソースが有効になっていません.
docker-ioパッケージを再検索し、成功しました.
テストのためにbash shellを起動
docker run -i -t centos /bin/bash

エラーは次のとおりです.
2014/07/26 03:05:27 unable to remount sys readonly: unable to mount sys as readonly max retries reached

問題の原因:プロファイルが正しくありません
//from statckvoerflow
your /etc/sysconfig/docker needs to look like this:
other_args="--exec-driver=lxc --selinux-enabled"
otherwise it will not work.

上記の手順に従ってプロファイルを変更しdockerを再起動し、成功しました.
serivce docker restart
docker run -i -t centos /bin/bash
bash-4.2#