[ English | Indonesia | русский ]
销毁容器¶
要销毁一个容器,请执行以下操作
# openstack-ansible openstack.osa.containers_lxc_destroy --limit localhost,<container name|container group>
注意
您将被问及两个问题
您确定要销毁 LXC 容器吗?您确定要销毁 LXC 容器数据吗?
第一个问题只会删除容器,但会将数据保留在绑定挂载和日志中。第二个问题会删除绑定挂载和日志中的数据。
警告
如果您删除整个 galera_server 容器组的容器和数据,您将丢失所有数据库!此外,如果您销毁许多主机组中的第一个容器,您将丢失其他重要项目,例如证书、密钥等。在使用此工具时,请确保您了解自己在做什么。
要再次创建容器,请执行以下操作
# cd /opt/openstack-ansible/playbooks # openstack-ansible openstack.osa.containers_lxc_create --limit localhost,lxc_hosts,<container name|container group> The lxc_hosts host group must be included as the playbook and roles executed require the use of facts from the hosts.