0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

LXDのコンテナのポートを外部に公開する

Posted at

目的

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
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?