[lxc-users] self-built ubuntu container image
WANG Cheng D
Cheng.d.Wang at alcatel-sbell.com.cn
Sat Oct 24 09:54:04 UTC 2015
Dear Fajar,
That’s great, and I will try.
Have a nice day.
Cheng Wang
From: Fajar A. Nugraha [mailto:list at fajar.net]
Sent: 2015年10月23日 17:27
To: LXC users mailing-list
Subject: Re: [lxc-users] self-built ubuntu container image
On Fri, Oct 23, 2015 at 3:51 PM, WANG Cheng D <Cheng.d.Wang at alcatel-sbell.com.cn<mailto:Cheng.d.Wang at alcatel-sbell.com.cn>> wrote:
Dear team,
Can you tell me how to self-build a Ubuntu container image?
I have installed a big application inside the container and the installation process is quite time-consuming. I want to distribute this container to multiple machines and the best way is to create a self-built lxc image, so that I needn’t to install the application again and again on different machines.
How can I achieve this?
From the list archive: https://lists.linuxcontainers.org/pipermail/lxc-users/2014-December/008128.html
Of course, if your requirement is as simple as "I want to clone this container in a similar way that virtualbox/vmware can export OVA", you can simply create an image (e.g. compressed tar file) of your container directory (e.g. /var/lib/lxc/app1), then copy-and-extract it on the other machines.
If you use the default lxcbr0 for the container, then you should be all set, no need to change anything.
If the containers are bridged to your LAN, then at the minimum you need to change its mac address (on the container config file).
--
Fajar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20151024/94931be3/attachment.html>
More information about the lxc-users
mailing list