User Tools

Site Tools


wiki:sysadmin:salt_3006_docker_fix

Fixing the Salt v3006 Docker Issue

Salt's recently published v3006.x releases have caused some very… peculiar issues to say the least. One issue in particular is this new “docker.version not found” error when running previously-working states that use the Docker module. It's caused by the new Salt OneDir packaging, since the Docker module requires the python-docker Python module installed but the OneDir packages don't install it into Salt's new isolated runtime.

To fix this issue, simply include the following state somewhere in your SLS states to install the missing Python module and get the Docker module working again:

docker-pip-package:
  pip.installed:
    - name: docker
    - reload_modules: true
    - require_in:
      - pkg: docker-software-package-install-pkg

Sometimes it really feels like the SaltStack team didn't test their v3006.x and “onedir” releases in actual, real-world environments before publishing them…

wiki/sysadmin/salt_3006_docker_fix.txt · Last modified: 2023/05/15 16:13 by Greg