Is there any way to run a shell command as part of a Salt state inside of a running docker container? I find the whole dockerng module in Salt very confusing, because it only lists ad hoc commands.
From what I can grasp from the docs it should work like this:
mystate:
dockerng.run:
- name: 12345
- cmd: bash -l -c ifconfig
That doesn't seem to be the case.
The command on the master:
sudo salt-ssh -i box_with_docker_containers state.apply
The error:
State 'dockerng.run' was not found in SLS