Posting this to hopefully help the next person. On a fresh install of Amazon Linux 2023 and saltstack 3006.4 (Sulfur) I was getting the following error.
ID: roles_smokeping_container
Function: docker_container.running
Name: smokeping-master
Result: False
Comment: An exception occurred in this state: Traceback (most recent call last):
File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/dockermod.py", line 398, in _get_client
ret = docker.APIClient(**client_kwargs)
AttributeError: module 'docker' has no attribute 'APIClient'
...
The master was freshly reinstalled as a container on this new host (minion) so my first inclination was that it was a problem with the master.
Turns out the problem was on the minion. Google pointed me to switching from
docker-pytodockerbut as near as I could tell I didn't havedocker-pyinstalled.I ran the following and it cleared the problem right up: