一、在宿主主机的相关配置
1)下载docker的bin文件,步骤如下:
wget https://get.docker.com/builds/Linux/x86_64/docker-1.8.3
mv docker-1.8.3 docker
cp docker /usr/bin
2)配置containerops网络
打开 /etc/hosts,添加
127.0.0.1 containerops.me
二、在容器内的相关配置
1)配置runtime文件
vim dockyard/conf/runtime.conf
添加如下内容:
runmode = dev
listenmode = https
httpscertfile = cert/containerops/containerops.crt
httpskeyfile = cert/containerops/containerops.key
[log]
filepath = log/containerops-log
[db]
uri = localhost:6379
registry = 0.9
runmode = dev
listenmode = https
httpscertfile = cert/containerops/containerops.crt
httpskeyfile = cert/containerops/containerops.key
[log]
filepath = log/containerops-log
[db]
uri = localhost:6379
passwd = containerop