/docker_salt_ssh

Run salt ssh inside docker container

Usage Docker Hub

  1. create container docker run -itd -v "/host_machine_path/etc/salt":"/etc/salt" -v "/host_machine_path/srv/salt":"/srv/salt" -v "/host_machine_path/srv/pillar":"/srv/pillar" --hostname docker_salt_ssh --name docker_salt_ssh_instance nghenglim/docker_salt_ssh
  2. bash inside container to run salt-ssh docker exec -it docker_salt_ssh_instance /bin/bash

Usage Github Repo

  1. clone this repo
  2. cd into this repo
  3. run docker build -t docker_salt_ssh .
  4. docker run -itd -v "/host_machine_path/etc/salt":"/etc/salt" -v "/host_machine_path/srv/salt":"/srv/salt" -v "/host_machine_path/srv/pillar":"/srv/pillar" --hostname docker_salt_ssh --name docker_salt_ssh_instance docker_salt_ssh

Note

Currently salt-ssh default need support python2, therefore salt-ssh might not work for ubuntu16.04 image out of the box