Hello,
I have Debian with LXC 2.0.9. When I create a lxc unprivileged containers, I get a keyserver error :
lxc-create -t download -n my_lxc
Setting up the GPG keyring
ERROR: Unable to fetch GPG key from keyserver.
lxc-create: lxccontainer.c: create_run_template: 1427 container creation template for my_lxc failed
lxc-create: tools/lxc_create.c: main: 326 Error creating container my_lxc
and it’s working fine if I specified the keyserver :
lxc-create -t download -n my_lxc -- --keyserver hkp://p80.pool.sks-keyservers.net:80
Setting up the GPG keyring
Downloading the image index
---
DIST RELEASE ARCH VARIANT BUILD
---
alpine 3.4 amd64 default 20180627_17:50
alpine 3.4 armhf default 20180627_17:50
alpine 3.4 i386 default 20180627_17:50
....
....
This looks identical to this other thread. (Except) The proposed fix is a workaround.
How to create containers without always having to specify the keyservers ? Did I do something wrong ?
Thanks for your help.