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?

  • boot2docker under proxy returns Forbidden
  • Access host filesystem in the docker compose command
  • docker API delete container not working
  • Docker and microservices
  • “cp: Command not found” when recreating and extending centos6-i386 Docker base image
  • Elastic Beanstalk and Dockerfile ARG instruction
  • How do I check if my local docker image is outdated, without pushing from somewhere else?
  • Restarting Play application Docker container results in 'This application is already running' - RUNNING_PID is not deleted
  • Issue regarding the Dockerfile creation
  • Problems trying to install docker compose on Kubuntu 16.04
  • Caching Jar dependencies for Maven-based Docker builds
  • Can you create Kerberos principals where the hostname is flexible? (Docker)
  • 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.