- 編輯 docker daemon 設定檔,設定 docker daemon 的 proxy
# vim /etc/sysconfig/docker other_args= export HTTP_PROXY="http://<ip>:<port>" export HTTPS_PROXY="https://<ip>:<port>"
- 重新啟動 docker daemon
# service docker restart
- 搜尋 coreos image
# docker search coreos NAME DESCRIPTION STARS OFFICIAL AUTOMATED tnolet/mesos-on-coreos 2 [OK] monder/coreos-nginx 2 [OK] million12/linode-coreos-api Deploy CoreOS on Linode. 1 [OK] shift/coreos-ubuntu-etcd 1 [OK]
- 下載 coreos image
# docker pull tnolet/mesos-on-coreos
2015年1月26日 星期一
docker daemon proxy 設定 on CentOS 6
2015年1月9日 星期五
Install Docker on CentOS 6.4
- 安裝 EPEL repository repository
# wget http://mirror-fpt-telecom.fpt.net/fedora/epel/6/i386/epel-release-6-8.noarch.rpm # rpm -ivh epel-release-6-8.noarch.rpm
- 執行 yum update 出現錯誤訊息:Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
# yum update Loaded plugins: fastestmirror, security Determining fastest mirrors Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
- 修改「/etc/yum.repos.d/epel.repo」設定
將 baseurl 前面的 # 拿掉,mirrirlist 前面加上 #
baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
- 安裝 Docker
# yum install docker-io
- 啟動 Docker
# service docker start
- 設定開機時自動啟動 Docker
# chkconfig docker on
訂閱:
文章 (Atom)