Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Vedrillan
Created November 15, 2018 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Vedrillan/bdd81187fdec03bba5ed7cdbe8deac15 to your computer and use it in GitHub Desktop.
Save Vedrillan/bdd81187fdec03bba5ed7cdbe8deac15 to your computer and use it in GitHub Desktop.
Script used to remove the lxc container
#!/bin/bash
NAME=$1
lxc stop -f $NAME
lxc delete $NAME
sudo sed -i "/$NAME.lxd #lxdeploy/d" /etc/hosts
ssh-keygen -qR "$NAME".lxd &>/dev/null
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment