# Running Docker Swarm inside LXC (outdated)

DevFeed: [Running Docker Swarm inside LXC (outdated)](<https://devfeed.tech/articles/running-docker-swarm-inside-lxc-outdated-90356.md>)

Original publisher: [Read original article](<https://andrea.corbellini.blog/2016/04/13/docker-swarm-inside-lxc/>)

Author: andreacorbellini

Published: 2016-04-13T18:00:00Z

Content type: tutorial

Language: en

Sources: [Andrea Corbellini](<https://devfeed.tech/sources/andrea-corbellini.md>)

Topics: [Docker](<https://devfeed.tech/topics/docker.md>), [Service fabric](<https://devfeed.tech/topics/service-fabric.md>), [container-networking](<https://devfeed.tech/topics/container-networking.md>)

Tags: [apparmor](<https://devfeed.tech/tags/apparmor.md>), [clusters](<https://devfeed.tech/tags/clusters.md>), [command](<https://devfeed.tech/tags/command.md>), [container](<https://devfeed.tech/tags/container.md>), [containers](<https://devfeed.tech/tags/containers.md>), [distributed-computing](<https://devfeed.tech/tags/distributed-computing.md>), [docker](<https://devfeed.tech/tags/docker.md>), [docker-swarm](<https://devfeed.tech/tags/docker-swarm.md>), [information-technology](<https://devfeed.tech/tags/information-technology.md>), [lxc](<https://devfeed.tech/tags/lxc.md>), [swarm](<https://devfeed.tech/tags/swarm.md>)

## AI overview

This tutorial describes a 2016 setup for running legacy Docker Swarm inside LXC containers, using OverlayFS and etcd discovery. It walks through configuring a manager and agents, and notes that the approach is useful for laptop cluster simulation rather than production. The newer Docker Swarm does not work in LXC as described.

## Source excerpt

UPDATE: This article was written in 2016 and refers to a version of Docker Swarm that is now known as "legacy Swarm". The newer Docker Swarm won't work in LXC as described in this article. I've been using Docker Swarm inside LXC containers for a while now, and I thought that I could share my experience with you. Due to their nature ...