Docker uses a persistent background service, dockerd, to manage container lifecycles. The CLI communicates with this daemon, which supervises container creation, networking, and resource allocation.
Running services with LXCs is much more straightforward than trying to on bare metal ...