Questions tagged [lxc]

LXC is an operating system-level virtualization method for running multiple isolated Linux systems (containers) on a single control host. It is sometimes referred to as “chroot on steroids”.

LXC provides operating system-level virtualization not via a full blown virtual machine, but rather provides a virtual environment that has its own process and network space. LXC relies on the Linux kernel cgroups functionality that became available in version 2.6.29 and is now available in all further kernel distibutions.

Cgroups was developed as part of LXC. It also relies on other kinds of namespace-isolation functionality, which were developed and integrated into the mainline Linux kernel.

LXC is similar to other OS-level virtualization technologies on Linux such as OpenVZ and Linux-VServer, as well as those on other operating systems such as FreeBSD jails. LXC Containers can define various cpu limits, memory limits etc. (In short all parameters that can be set via CGROUPS) to prevent any one container from interfering with all other containers running on the same LXC host.

LXC uses the linux bridge-utils commands to create local VLANs, and attach containers and physical interfaces to them. With containers the physical overhead (ram, swap space, one kernel per VM, plus hypervisor) that is present in virtualization methods is reduced. With containers, one kernel and one virtual memory space is shared between all the containers running on that host.

For a comparison of other Operating System virtualization techniques, see this link

591 questions
26
votes
3 answers

Difference between LXC and libcontainer

While going through docker docs, I found that docker is now using libcontainer instead of LXC. Has anyone idea about how libcontainer is better (if so..) than LXC ?
Yogesh Jilhawar
  • 5,605
  • 8
  • 44
  • 59
26
votes
6 answers

sudo: effective uid is not 0, is sudo installed setuid root?

I am trying to create deb package from LXC rootfs, and after creating it I want to install that package any computer. Up to this point I achieved packaging and installing deb package, however after installation of LXC package, I cannot be…
Salih Kardan
  • 579
  • 1
  • 6
  • 16
25
votes
3 answers

How is "lxd" different from lxc/docker?

Questions How does lxd provide Full operating system functionality within containers, not just single processes? How is it different from lxc/docker + wrappers? Is it similar to a container that is launched with docker + supervisor/wrapper script…
resultsway
  • 12,299
  • 7
  • 36
  • 43
25
votes
3 answers

How to start docker container as server

I would like to run a docker container that hosts a simple web application, however I do not understand how to design/run the image as a server. For example: docker run -d -p 80:80 ubuntu:14.04 /bin/bash This will start and immediately shutdown the…
Jeroen Ooms
  • 31,998
  • 35
  • 134
  • 207
25
votes
1 answer

What is the difference between lmctfy and lxc

Recently Google has open sourced lmctfy, Google's container stack. I don't understand it much, I have a few questions. What are the differences between lmctfy and lxc and docker? What problem does Google solve with lmctfy? Thanks
dohaivu
  • 2,038
  • 15
  • 17
21
votes
2 answers

Docker container refuses to get killed after run command turns into a zombie

first thing first. my system info and versions: $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 13.04 Release: 13.04 Codename: raring $ sudo docker version Client version: 0.9.0 Go version (client):…
AnandKumar Patel
  • 980
  • 9
  • 18
20
votes
5 answers

Can't run Docker container due device mapper error

I just can't create and run new containers in Docker anymore. But in the same time a can run previously created containers. When I try to do something like this: [user@host ~ ] docker run --name=fpm-5.3 debian:jessie 2014/07/12 07:34:08 Error:…
loadaverage
  • 1,028
  • 1
  • 11
  • 16
20
votes
4 answers

How do I Backup / Move LXC containers?

I want to take lxc container backup. We have server with 12.04 LTS ubuntu server and I have installed LXC - 1.0.0.alpha2 in it. I wanted to update our ubuntu server to 14.04 LTS. So what I want to do is have LXC containers backed up -> upgrade OS to…
niren
  • 2,693
  • 8
  • 34
  • 58
20
votes
2 answers

How to pull a single image from any docker repository?

The docker repositories contains multiple images. Is it possible to just pull the specific image from Repository. When I use: docker pull ubuntu It pulls down around 8-10 different versions of ubuntu.
Ananda
  • 1,572
  • 7
  • 27
  • 54
19
votes
3 answers

What is the impact of using multiple Base Images in Docker?

I understand that docker containers are portable between docker hosts, but I am confused about the relationship with the Base Image and the host. From the documentation on Images, it appears that you would have a much heavier footprint (akin to…
Page
  • 9,945
  • 5
  • 37
  • 45
16
votes
3 answers

How to set the MAC address for Docker LXC containers?

Whenever I run a docker container, I see that it uses a random MAC address: eth0 Link encap:Ethernet HWaddr de:6f:de:74:bd:d9 How do I set a specific MAC address for a container run? Will I be able to have multiple containers running…
Victor Lyuboslavsky
  • 9,882
  • 25
  • 87
  • 134
14
votes
2 answers

OS Container vs Application Container

So, the other day I was reading about OS/System Container vs Application Container here. There it is mentioned that Docker is an application container and Any container that runs an OS is a system container. Now, I am confused because even to run…
ImVikash_0_0
  • 174
  • 9
14
votes
1 answer

How many docker containers can i run simultaneously on single host?

I am new to lxc and docker. Does docker max client count depend solely on CPU and RAM or are there some other factors associated with running multiple containers simultaneously?
zergood
  • 711
  • 1
  • 10
  • 15
14
votes
5 answers

Can docker run inside a Linux Container?

Koding is a collaborative programming environment, which creates a virtual machine for multiple user to colaborate on software development. They use Linux Containers to virtualize the machines. I'm not being able to install docker on…
tiagoboldt
  • 2,426
  • 1
  • 24
  • 30
14
votes
3 answers

Is it possible to expose a USB device to an LXC/Docker container?

I have an embedded system development image contained in a Docker file. In order to flash the code I need to connect to the nodes via USB Serial (e.g. /dev/ttyACM0). With Docker I used the new bind mount feature to (see…
till
  • 570
  • 1
  • 6
  • 22
1
2
3
39 40