You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I deploy salt on docker, all files will be lost after the docker container is restarted, such as the salt minion key file. I manually use the same file '/etc/salt/master' to restart salt, but I can't get the previously authorized salt minion, and salt minion will not automatically re authenticate. How can I make salt minion re authenticate and connect?
Hi erwindon, But salt minion will not automatically reauth to the master?for example, through these three parameters:ping_interval、auth_safemode、auth_tries
A docker container with a volume behaves as a machine. once it is restarted, it just reads the keys that it has saved last time and continues working. just like a traditional installation where you just reboot the machine (or restart salt-minion).
Discussed in Tuesday Triage 2021-MAR-30 Documentation on how Salt runs outside of Docker but runs commands within the container could be clearer and more robust. If running Salt within containers volumes must be used - for persistent keys through container restarts.
Thanks for the original report. This issue has been open for more than three years without recent activity and carries a severity label below severity-high. As part of a backlog cleanup, we're closing older low- and medium-severity issues so triage can focus on reports against currently supported releases.
Closing isn't a judgement that the problem wasn't real — only that the codebase has moved through several releases since this was filed, and much of the surrounding code has changed.
If you — or anyone else — can still reproduce this on the 3008.x LTS release, please leave a comment with a reproduction and a maintainer will reopen. The original reporter can also reopen directly.
Closing as part of a backlog cleanup — this issue was filed without a Salt versions-report, so there's no explicit version attached to compare against.
If you (or anyone else) can still reproduce this on 3008.3 or later, please comment with:
A fresh reproduction
The output of salt --versions-report
and the issue will be reopened. The original reporter can also reopen directly.
Activity
erwindon commentedon Oct 25, 2020
Andy,
It looks like you did not use a "docker volume" to make some data from the container persistent. The key is stored in directory
/etc/salt/pki/minion. You may want to place/etc/salt(and maybe also/srv?) in a volume.The description on https://docs.saltstack.com/en/master/topics/tutorials/docker_sls.html does not mention this.
See https://hub.docker.com/layers/doghouseau/salt-minion/latest/images/sha256-13d8c8ea4fcc6c6c346464351e6921b74a625e0a874221ed685c8fcf1fff3729; or https://hub.docker.com/layers/derlih/salt-minion/latest/images/sha256-205fdb4b7777e423e551b8d7a4d7be139dde5c00bc3ecb0fb51340dceea9d867?context=explore for 2 examples where it is used. It's the line with the VOLUME command.
andyyumiao commentedon Oct 26, 2020
Hi erwindon, But salt minion will not automatically reauth to the master?for example, through these three parameters:ping_interval、auth_safemode、auth_tries
erwindon commentedon Oct 26, 2020
A docker container with a volume behaves as a machine. once it is restarted, it just reads the keys that it has saved last time and continues working. just like a traditional installation where you just reboot the machine (or restart salt-minion).
sagetherage commentedon Mar 30, 2021
Discussed in Tuesday Triage 2021-MAR-30 Documentation on how Salt runs outside of Docker but runs commands within the container could be clearer and more robust. If running Salt within containers volumes must be used - for persistent keys through container restarts.
4 remaining items
dwoz commentedon Oct 15, 2026
Thanks for the original report. This issue has been open for more than three years without recent activity and carries a severity label below
severity-high. As part of a backlog cleanup, we're closing older low- and medium-severity issues so triage can focus on reports against currently supported releases.Closing isn't a judgement that the problem wasn't real — only that the codebase has moved through several releases since this was filed, and much of the surrounding code has changed.
If you — or anyone else — can still reproduce this on the 3008.x LTS release, please leave a comment with a reproduction and a maintainer will reopen. The original reporter can also reopen directly.
dwoz commentedon Oct 17, 2026
Reopening — there is an open PR tracking a fix for this: #69554.
dwoz commentedon Oct 23, 2026
Closing as part of a backlog cleanup — this issue was filed without a Salt versions-report, so there's no explicit version attached to compare against.
If you (or anyone else) can still reproduce this on 3008.3 or later, please comment with:
salt --versions-reportand the issue will be reopened. The original reporter can also reopen directly.