add back set -e, and add lxc-wait to make sure the container is running