In the previous article, I introduced readers to the world of nspawn containers. This article will expand on that introduction to nspawn and focus on a more advanced topic - running the Docker daemon in an nspawn container. I will describe how to prepare the environment and install Docker in an isolated setting. The example presented comes from my project, where the configuration included Jenkins responsible for building Docker images and running applications using docker-compose. Security issues forced me to seek alternative solutions, such as using an nspawn container.