Installing problem on a LXC

hi all, i’ll try to install docker on a pre-configured LXC with debian 9, i follow the official guide but a get and obscure error:
apt-get install docker-ce
output -> h__ps://
apt-cache madison docker-ce
output -> h__ps://
journalctl -xe
output -> h__ps://
Is there a way to install dockers on an LXC or is it recommended to put it inside a virtual machine?