Submitted upstream.

Blog post.

<iframe width="560" height="315" src="" frameborder="0" allowfullscreen></iframe>


If you have an infrastructure described with a Salt state tree (.sls files) having to create Docker images with Dockerfiles means you have infrastructure defined somewhere else and in a different format.

This projects attempts to allow building Docker images from pure Salt states. In some way, it has a similar goal to ansible-container with some differences:

  • It is not a "cli" tool, but a Salt module that inherits all the features of Salt.
  • It reuses the dockerng module instead of interacting directly with Docker
  • As the tricky part is to get the configuration management engine in the container "temporarily", it does not do hacks like going to the internet and checkout Ansible master from github in /tmp. It uses the salt.thin technology to use the host Salt installation into the container.


  • Just like it is tricky to get Salt into the container, right now the image always ends with Python installed.
  • Figure out how to pass pillar data



  • Create images from a base images and a list of sls modules
  • Ability of using the host salt installation thanks to salt.thin
  • Ability to use the grains from inside of the container
  • Ability to pillar data visible to the minion in the state applied in the container


  • Better error handling (eg, cleanup containers)
  • Factor out a function to run arbitrary salt modules inside the container with salt.thin

Looking for hackers with the skills:

salt saltstack docker

This project is part of:

Hack Week 14


  • about 6 years ago: dmaiocchi liked this project.
  • about 6 years ago: evshmarnev liked this project.
  • about 6 years ago: dmacvicar started this project.
  • about 6 years ago: dmacvicar added keyword "salt" to this project.
  • about 6 years ago: dmacvicar added keyword "saltstack" to this project.
  • about 6 years ago: dmacvicar added keyword "docker" to this project.
  • about 6 years ago: dmacvicar originated this project.

  • Comments

    Be the first to comment!

    Similar Projects

    Saline: Salt state appliement monitoring by vzhestkov

    Project Description

    In case of applying s...

    Uyuni/SUSE Manager Server Helm chart on k3s by moio

    ![Combined icons of k3s and Uyuni](https://user...

    Migrate suntorytimed/resourcespace container to an openSUSE base by suntorytimed

    Project Description

    For quite some time I a...

    Improve SLE Release Management Container by suntorytimed

    Project Description

    In this project I would...

    Package docker compose v2 by hennevogel

    Package [compose](