Can I use LXD image to create Docker container and/or vice versa?

A container system making use of LXC containers.

the above statement is true for both LXD and Docker. In that case can we use LXD image to create Docker container and/or vice versa?

  • Cloud foundry scale
  • Docker not supported on 32-bit OS
  • Dockerized nodes of elasticsearch cluster in EC2, production environment
  • ssh-add does not work inside docker image
  • Cannot reach web server inside Docker
  • initdb: could not change permissions of directory on Postgresql container
  • VirtualBox and Nginx very slowly serving cached static JS and CSS files
  • Cannot get postgresql-9.3-postgis-2.1 on Ubuntu 14.04.1 Docker container
  • Configuring Docker multi-container App with Spring Cloud Server for OpenShift Origin
  • Install mysqlclient-python in Docker
  • Docker Distributed Application Bundle(DAB) no network creation options
  • Fail to start linux container after upgrading to docker 1.5
  • One Solution collect form web for “Can I use LXD image to create Docker container and/or vice versa?”

    They are fundamentally different.

    With LXD container image you get full OS experience, it means all applications and processes that are part of the distro, only kernel is shared with the host. With Docker image you get single process application.

    So you can have Docker running inside LXD container, but not the other way around.

    The confusion might arise from the fact that Docker did use liblxc library in the past, that LXD daemon is using to control containers. If I understand correctly Docker is using another library called libcontainer now to provide isolation.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.