Let's call the container docker_test1
.
$ sudo lxc-create -t download -n docker_test1
...
Follow the prompts on the screen to set up the new container.
#!/bin/bash | |
GET_IP_URL="https://api.ipify.org/" | |
UPDATE_SCRIPT=$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )/update | |
LOGGER_SCRIPT=$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )/log | |
source $( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )/config | |
HOST_RESULT="$(host $freenom_domain_name 80.80.80.80)" | |
DNS_IP=$(echo $HOST_RESULT | cut -d' ' -f 12) | |
CURR_IP="$(curl -s $GET_IP_URL)" |
This will work with either networkd or NetworkManager as a resolver. In fact, this is the only way to do bridged KVM (libvirtd) networking with NetworkManager.
If you're using NetworkManager (on a desktop or laptop, for example) on your KVM host, follow these instructions to set up a bridge interface.
Once you have the host bridge set up, proceed as follows: