Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| tips:lxd [2018/04/09 15:49] – [network] scipio | tips:lxd [2019/11/19 19:12] (current) – [container] scipio | ||
|---|---|---|---|
| Line 128: | Line 128: | ||
| lxc list | lxc list | ||
| </ | </ | ||
| + | |||
| + | create custom image from local container | ||
| + | < | ||
| + | lxc publish local-container --alias mycustomimage | ||
| + | </ | ||
| + | |||
| + | create container from previous image | ||
| + | < | ||
| + | lxc launch mycustomimage newcontainer | ||
| + | </ | ||
| + | |||
| + | |||
| bash inside | bash inside | ||
| Line 209: | Line 221: | ||
| <code bash> | <code bash> | ||
| NAME=x11test | NAME=x11test | ||
| - | lxc launch images: | + | lxc launch images: |
| </ | </ | ||
| Line 219: | Line 231: | ||
| </ | </ | ||
| - | set DISPLAY env to xorg server on host | + | |
| - | < | + | < |
| - | lxc config set $NAME environment.DISPLAY < | + | NAME=nvidia-sdk-manager |
| + | # lxc config set $NAME environment.DISPLAY < | ||
| + | lxc config set $NAME environment.DISPLAY :0 | ||
| + | lxc config device add $NAME X0 disk path=/ | ||
| + | lxc config device add $NAME Xauthority disk path=/ | ||
| </ | </ | ||