在从dotcloud.yml删除mondodb服务并推送到dotcloud后,我收到以下警告:
Warning: Service mongo is no longer in your dotcloud.yml, but will continue running until you destroy it explictly.但在CLI文档或dotcloud页面中,我并不清楚如何显式销毁服务。
发布于 2013-02-18 23:15:53
您可以使用destroy命令,在其中指定要销毁的应用程序和服务。
如果您只是放置应用程序,您将销毁整个应用程序,因此要小心,并确保您指定了要销毁的服务。
下面是一个例子。
检查您的dotcloud cli版本以了解要使用哪个版本。
$ dotcloud --version命令行界面版本0.9.x
# destroy the application
$ dotcloud destroy --application <app name>
# destroy a service in the application
$ dotcloud destroy --application <app name> <service name>有关更多信息,请参阅以下文档:http://docs.dotcloud.com/firststeps/in-depth/#deleting-services
命令行界面版本0.4.x
# destroy the application
$ dotcloud destroy <app_name>
# destroy a service in the application
$ dotcloud destroy <app_name>.<service_name>有关更多信息,请参阅以下文档:http://docs.dotcloud.com/0.4/firststeps/in-depth/#deleting-services
注意::您也可以使用仪表板。但是,看起来你只能销毁应用程序,它不能让你销毁服务。所以现在这不会对你有多大的好处,但将来可能会添加。
https://stackoverflow.com/questions/14935759
复制相似问题