lxc-tools
lxc-tools copied to clipboard
Doesn't work with 2.0.8 on my ubuntu system
Don't know why lxc-ls returns nothing, but I made a quick fix. Sharing it here. I replaced it with :
RUNNING_CONTAINERS="$(lxc list -c ns | grep 'RUNNING' | awk -F '|' '{print $2}' | awk '{$1=$1;print}')"
for container in $RUNNING_CONTAINERS; do echo "Stopping $container..." lxc stop $container done