目的
LXDコンテナで、docker exposeに値する様な設定をしたい
設定
構文
lxc config device add <container_name> <proxy_name> proxy listen=tcp:<host_ip>:<host_port> connect=tcp:<container_ip>:<container_port> bind=host
例
lxc config device add ubuntu-lamp ubuntu-lamp-proxy proxy listen=tcp:192.168.219.40:80 connect=tcp:10.107.73.3:80 bind=host
設定削除
構文
lxc config device remove <container_name> <proxy_name>
例
lxc config device remove ubuntu-lamp ubuntu-lamp-proxy