Skip to content

Instantly share code, notes, and snippets.

@MakeStuffWithAI
Last active August 23, 2018 21:39
Show Gist options
  • Select an option

  • Save MakeStuffWithAI/b598c9fc639ce409af9009d35cdd5ddb to your computer and use it in GitHub Desktop.

Select an option

Save MakeStuffWithAI/b598c9fc639ce409af9009d35cdd5ddb to your computer and use it in GitHub Desktop.
Command to fix LXC GPG Error
#lxc on Ubuntu 18.04 has a "GPG error" if it is just run with the standard keyserver
#This command fixes that
lxc-create -t download -n mycontainer -- --keyserver hkp://p80.pool.sks-keyservers.net:80
#also handy for ansible work is the command
#sudo lxc-ls -f | awk '{if(NR>1)print $5}' > hosts
#This command will save all of the ip addresses to a file called hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment