重新启动后使openshift源docker容器持久化 [英] Making openshift origin docker containers persistent after reboot

查看:269
本文介绍了重新启动后使openshift源docker容器持久化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是openshift的新手,需要知道在重启oc集群或重启服务器之后是否有可能使openshift起源中的所有容器持久化.

I am new to openshift and need to know if it is possible to make all containers in openshift origin persistent after restarting the oc cluster or rebooting the server.

我遵循的教程要求执行以下操作才能创建集群

The tutorial i followed requires one do the following in order to create a cluster

oc cluster up

我现在遇到的问题是,执行oc cluster down && oc cluser up之后登录我的openshift应用程序不会显示我正在运行的任何容器.

The problem i am running into now is that login into my openshift application after, doing an oc cluster down && oc cluser up doesn't show any of my running containers.

我尝试通过执行docker start $(docker ps -qa)重新启动所有容器,但是容器仍未显示在openshift原始应用程序中.

I tried restarting all of them by doing a docker start $(docker ps -qa) but the containers still aren't showing up in the openshift origin application.

任何有关如何解决此问题的建议将不胜感激.

Any advice on how to resolve this will be much appreciated.

推荐答案

您需要告诉它在重新启动期间持久保存etcd和配置数据.参见:

You need to tell it to persist the etcd and configuration data across restarts. See:

  • https://github.com/openshift/origin/blob/master/docs/cluster_up_down.md#configuration
  • https://github.com/openshift/origin/blob/master/docs/cluster_up_down.md#etcd-data

告诉它保存数据的位置可能取决于您是直接使用本地Docker服务还是使用docker-machine.

Where you tell it to save data may depend on whether you are using the local Docker service directly or docker-machine.

这篇关于重新启动后使openshift源docker容器持久化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆