- 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
- bash inside container to run salt-ssh
docker exec -it docker_salt_ssh_instance /bin/bash
- clone this repo
- cd into this repo
- run
docker build -t docker_salt_ssh .
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
Currently salt-ssh default need support python2, therefore salt-ssh might not work for ubuntu16.04 image out of the box