# Running Docker Swarm inside LXC (outdated)

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

Original publisher: [Read original article](<https://andrea.corbellini.name/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>), [Tutorial](<https://devfeed.tech/topics/tutorial.md>), [Containers](<https://devfeed.tech/topics/containers.md>), [Development](<https://devfeed.tech/topics/development.md>), [Security](<https://devfeed.tech/topics/security.md>)

Tags: [apparmor](<https://devfeed.tech/tags/apparmor.md>), [article](<https://devfeed.tech/tags/article.md>), [containers](<https://devfeed.tech/tags/containers.md>), [distributed-computing](<https://devfeed.tech/tags/distributed-computing.md>), [docker](<https://devfeed.tech/tags/docker.md>), [information-technology](<https://devfeed.tech/tags/information-technology.md>), [lxc](<https://devfeed.tech/tags/lxc.md>), [security](<https://devfeed.tech/tags/security.md>), [shell](<https://devfeed.tech/tags/shell.md>), [swarm](<https://devfeed.tech/tags/swarm.md>), [ubuntu](<https://devfeed.tech/tags/ubuntu.md>)

## AI overview

This outdated tutorial explains how to run legacy Docker Swarm inside LXC containers using a preferred setup with AppArmor disabled, Docker OverlayFS storage, and etcd discovery. It notes that 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 ...