lxc-tools icon indicating copy to clipboard operation
lxc-tools copied to clipboard

Doesn't work with 2.0.8 on my ubuntu system

Open johnr14 opened this issue 8 years ago • 0 comments

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

johnr14 avatar Dec 24 '16 14:12 johnr14