Getting Started with LXC
-
This post is deleted! -
https://www.stgraber.org/2013/12/20/lxc-1-0-your-first-ubuntu-container/
The manpages on https://linuxcontainers.org/ are also pretty good.
-
What distro are you using? What do you recommend?
-
At home I'm running CentOS 7 as a host. For my website it's Ubuntu 15.10. Ubuntu has been developing more on the platform it seems. Even just small things like
lxc-ls -f
aren't available on CentOS. It'slsx-ls --active
and it gives you no container info at all. -
And what one do you recommend? ;=)
It seems to be favored on Ubuntu. But I want a expert option
-
Ha I'm far from an expert :-P. I think I'd still use CentOS for the host. When LXD is fully developed, that might change however.
-
The whole LXD vs LXC things confuses me...
-
@aaronstuder said:
The whole LXD vs LXC things confuses me...
It's not vs. One is a new interface to the other. It's always LXC containers.
-
Should I worry about this?
<28>systemd-sysctl[263]: Failed to write '1' to '/proc/sys/net/ipv4/conf/all/rp_filter': Read-only file system <28>systemd-sysctl[263]: Failed to write '1' to '/proc/sys/net/ipv4/conf/default/promote_secondaries': Read-only file system <28>systemd-sysctl[263]: Failed to write '1' to '/proc/sys/fs/protected_hardlinks': Read-only file system <28>systemd-sysctl[263]: Failed to write '1' to '/proc/sys/net/ipv4/conf/default/rp_filter': Read-only file system
-
Whats the best way to jump in and out of containers @johnhooks?
-
@aaronstuder said:
Whats the best way to jump in and out of containers @johnhooks?
Either lxc-attach or lxc-console. Console gives you Norma console type access. Attach just drops you into root in the root folder.
You'll need lxc+-attach to set up sudo and everything