Containers questions... - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4) +--- Forum: Pine A64 Projects, Ideas and Tutorials (https://forum.pine64.org/forumdisplay.php?fid=19) +--- Thread: Containers questions... (/showthread.php?tid=1918) |
Containers questions... - rallar8 - 08-02-2016 So I have been toying with my three Pine64 with android, ubuntu and debian-- and I have setup piholes and what not- but have basically realized that the Pine64 is way too beefy for just cups or a pihole. For instance my pine spends 98.7% of it's time at 480 MHz when serving cups and pihole.... So i was looking to add more services, the problem is that what I am looking at, openvpn, cups, pihole, yunohost - whatever my heart desires - basically require control of their respective network stack- so naturally I have tried to make containers with LXC and have basically been having a devil of a time. Has anyone had success setting up multiple services with containers or qemu or anything? Thanks RE: Containers questions... - longsleep - 08-02-2016 Sure, lxc, lxd and docker work fine for containers. Also KVM works well if you need full virtualization. RE: Containers questions... - rallar8 - 08-02-2016 (08-02-2016, 12:21 PM)longsleep Wrote: Sure, lxc, lxd and docker work fine for containers. Also KVM works well if you need full virtualization. I have been having issues with lxc on debian... the lxc-checkconfig prints clean and then the images don't pop up... I will keep digging if you got it working. RE: Containers questions... - longsleep - 08-02-2016 No idea about Debian - i suggest to use my Ubuntu Image. RE: Containers questions... - rallar8 - 08-03-2016 (08-02-2016, 02:00 PM)longsleep Wrote: No idea about Debian - i suggest to use my Ubuntu Image. It appears to just be a problem with distros, differing versions of LXC and differing documentation. Ubuntu works with LXD - running lxd-init after install - the system isn't fully up - the networking stuff is a little deep for me - but this should work - thanks! for future reference i installed: lxd lxc cgmanager ebtables dnsmasq bridge-utils The downloaded images are like 50/50 versus the build your own - some of them are better some worse. RE: Containers questions... - montero65 - 08-05-2016 Forgive my ignorance, but what are you talking about? I don't understand what you mean by "containers" and serving cups and such. Just curious if you can expand for the uninformed. Thanks. RE: Containers questions... - MarkHaysHarris777 - 08-05-2016 hi montero65 You can read about LXC (Linux Containers) at this wiki link. Linux containers is a relatively new virtualization method(s) and software; its an advanced topic that usually goes beyond the scope of discussions on a forum like this one, because it is specialized, and usually above the technical level of the majority of participants. The best place to start is the wiki I listed above, and then branch out from there if you're interested. RE: Containers questions... - longsleep - 08-05-2016 LXD and Docker both work great on Pine64. Note that this includes Docker images for armhf. If you want to learn about LXD See http://www.ubuntu.com/cloud/lxd RE: Containers questions... - rallar8 - 08-06-2016 (08-05-2016, 02:20 PM)montero65 Wrote: Forgive my ignorance, but what are you talking about? I don't understand what you mean by "containers" and serving cups and such. Just curious if you can expand for the uninformed. Thanks. Double what everyone else said. Basically, the kernel is "shared" with these containers - so you aren't virtualizing hardware (what the kernel is usually interacting with) - drastically reducing the amount of resources necessary to launch and serve these container-ized applications. The only kind of gothchas are
I will write up a guide when I am done - so I know how all the magic works - it will be posted here - or at least linked Here is the guide: https://www.reddit.com/r/pine64/comments/50qfi9/linux_containers_your_pine64_ubuntu_server_pt_2/ |