Difference between revisions of "LXC Ubuntu 16.04"

From MyWiki
Jump to: navigation, search
Line 6: Line 6:
 
https://www.youtube.com/watch?v=snWp-5K2LO4
 
https://www.youtube.com/watch?v=snWp-5K2LO4
 
lxc exec first -- /bin/bash
 
lxc exec first -- /bin/bash
 +
sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to [DestinationIP:PORT]
 
</source>
 
</source>

Revision as of 10:31, 17 May 2018

https://tutorials.ubuntu.com/tutorial/tutorial-setting-up-lxd-1604#2

There are two repositories -    images repository  and  ubuntu repository
lxc image list images:
lxc image list ubuntu:
https://www.youtube.com/watch?v=snWp-5K2LO4
lxc exec first -- /bin/bash
sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to [DestinationIP:PORT]