Flynn: 支持从系统中移除 Flynn

创建于 2015-02-17  ·  4评论  ·  资料来源: flynn/flynn

应该有一种简单的方法可以从系统中删除所有 Flynn 二进制文件、配置和图像。

componeninstall-script kinenhancement

最有用的评论

@tuananh使用带有--remove标志的安装脚本。

所有4条评论

我们应该考虑将所有内容都安装到/opt/flynn中,以使卸载更容易。

对于由于集群损坏而想要删除 Flynn 并且您想从头开始的任何人,您可以将--clean标志传递给安装程序脚本,该脚本将在重新安装之前停止并删除 Flynn:

curl -fsSL -o /tmp/install-flynn https://dl.flynn.io/install-flynn
sudo bash /tmp/install-flynn --clean

要在不重新安装的情况下删除所有内容,请执行以下步骤:

# stop flynn-host daemon
sudo stop flynn-host

# cleanup any remaining containers
virsh -c lxc:/// list --name | xargs -L 1 virsh -c lxc:/// destroy

# unmount ZFS volumes
grep zfs /proc/mounts | cut -d ' ' -f2 | sudo umount

# destroy ZFS volumes and zpool
flynn-host destroy-volumes --include-data
zpool destroy flynn-default

# remove Flynn files and directories
rm -rf /usr/local/bin/flynn* /var/lib/flynn /etc/flynn

这个命令给了我错误。 知道为什么吗?

virsh -c lxc:/// list --name | xargs -L 1 virsh -c lxc:/// destroy

error: command 'destroy' requires <domain> option

@tuananh使用带有--remove标志的安装脚本。

此页面是否有帮助?
0 / 5 - 0 等级

相关问题

onnimonni picture onnimonni  ·  6评论

onnimonni picture onnimonni  ·  3评论

heldopslippers picture heldopslippers  ·  4评论

hadifarnoud picture hadifarnoud  ·  3评论

philiplb picture philiplb  ·  4评论