ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Getting Started with LXC

    Scheduled Pinned Locked Moved IT Discussion
    11 Posts 3 Posters 1.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • stacksofplatesS
      stacksofplates
      last edited by

      https://www.stgraber.org/2013/12/20/lxc-1-0-your-first-ubuntu-container/

      The manpages on https://linuxcontainers.org/ are also pretty good.

      1 Reply Last reply Reply Quote 0
      • A
        Alex Sage
        last edited by Alex Sage

        What distro are you using? What do you recommend?

        1 Reply Last reply Reply Quote 0
        • stacksofplatesS
          stacksofplates
          last edited by

          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's lsx-ls --active and it gives you no container info at all.

          A 1 Reply Last reply Reply Quote 0
          • A
            Alex Sage @stacksofplates
            last edited by Alex Sage

            And what one do you recommend? ;=)

            It seems to be favored on Ubuntu. But I want a expert option 🙂

            1 Reply Last reply Reply Quote 0
            • stacksofplatesS
              stacksofplates
              last edited by

              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.

              1 Reply Last reply Reply Quote 0
              • A
                Alex Sage
                last edited by

                The whole LXD vs LXC things confuses me...

                scottalanmillerS 1 Reply Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller @Alex Sage
                  last edited by

                  @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.

                  1 Reply Last reply Reply Quote 0
                  • A
                    Alex Sage
                    last edited by

                    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
                    
                    1 Reply Last reply Reply Quote 0
                    • A
                      Alex Sage
                      last edited by

                      Whats the best way to jump in and out of containers @johnhooks?

                      stacksofplatesS 1 Reply Last reply Reply Quote 0
                      • stacksofplatesS
                        stacksofplates @Alex Sage
                        last edited by stacksofplates

                        @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

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post