-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] docker states are broken python issue #58920
Comments
Only seen on Centos/7. |
I've had similar problem with Ansible lately. This is not problem with SaltStack nor Ansible, but with You installed Docker CE from official Docker repository which makes it latest version which The only solution to this is to install latest docker python library which is what @noelmcloughlin suggested. |
Thanks @morsik |
It looks like this problem is again present with the new When 6.0.0 is installed on a host, any docker-related states error with
When I back the docker python package back to 5.0.3, then the states work correctly. The 6.0.0 package was released Aug 18, 2022. |
Short input on the issue. It seems that See docker/docker-py@cd2c35a#diff-bb2080f45d047774e54443130a720356017839471a935153b2305fc74667834d |
This issue persists with onedir. I worked around it with:
It seems like there is frequently a game of catch-up with the Docker APIs. Maybe creating an interface to something like Docker Compose would reduce the number of breaking APIs. Docker Compose has standardized, schema-versioned config files. Possibly the exact container definitions would be moved away from salt but the activation of a Compose file might be less prone to breaking changes. |
Does not seem to me and the issue persists on a new salt minion install. |
Is this still an issue in 2024 with docker version 7? Wondering if we can update states to remove <6 |
Description
Running local masterless minion on Centos7 (vagrant centos/7 image) and docker states are broken.
Setup
(Please provide relevant configs and/or SLS files (be sure to remove sensitive info).
Steps to Reproduce the behavior
(Include debug logs if possible and relevant)
Related to:
#47234
#54449
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: