LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Containers
User Name
Password
Linux - Containers This forum is for the discussion of all topics relating to Linux containers. Docker, LXC, LXD, runC, containerd, CoreOS, Kubernetes, Mesos, rkt, and all other Linux container platforms are welcome.

Notices


Reply
  Search this Thread
Old 11-05-2018, 08:54 AM   #1
nejnej25
Member
 
Registered: Dec 2017
Location: Asia
Distribution: Slackware 14.2,CentOS 7, Ubuntu, Debian
Posts: 116

Rep: Reputation: Disabled
Question Docker or LXD


Hi, just crowdsourcing.

Which is better to use for containers. Docker or LXD and why?

Thanks!
 
Old 11-05-2018, 09:36 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Although they use the same technologies to implement containers, such as kernel namespaces, cgroups, and overlay filesystems, the two have totally different purposes.

Docker containerizes applications. One of its main promises is the old “write once, write anywhere”. Docker allows you to build your application in containers, either from scratch or on top of other applications. The latter may be the main reason for Docker’s success. Another is probably the Docker hub, where everybody can publish their applications, and everybody can download and use applications as fundamental building blocks to create new ones.

LXD is great for running very resource-efficient virtual private servers, full (or almost) operating systems in containers. It doesn’t have tools for building container images, as far as I know, and doesn’t have anything like the Docker hub.

Thus, you can’t say that one is generally better than the other.

Last edited by berndbausch; 11-05-2018 at 09:38 AM.
 
Old 01-09-2019, 11:41 AM   #3
simosx
Member
 
Registered: Jul 2005
Posts: 66

Rep: Reputation: 11
With Docker you need to create a Dockerfile with the description of your configuration.

With LXD, you are launching a system container (similar to a VM) with a Linux distribution of your choice (Ubuntu, Debian, etc),
and then you install whatever software you want. The system container is running at all times, just like a VM does.
You can make changes to the system container, you can run apt update, install packages, remove packages.
With Docker, the configuration changes are meant to be done once and not change.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ipsec/strongswan server on docker works on lxd container not taumeister Linux - Containers 3 04-21-2018 07:57 AM
LXer: Create & manage docker hosts with Docker Machine on VirtualBox LXer Syndicated Linux News 0 11-28-2017 02:33 AM
LXer: Canonical and Docker Partner to Distribute Docker Releases as Snaps on Ubuntu LXer Syndicated Linux News 0 12-03-2016 09:57 PM
LXer: Ubuntu LXD: Not a Docker replacement, a Docker enhancement LXer Syndicated Linux News 0 11-05-2014 08:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Containers

All times are GMT -5. The time now is 05:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration