Closed TheDevelolper closed 3 years ago
What kind of errors are you getting?
Sorry, I should have known you'd need this! 🤦♂️
PS D:\Repos\docker-autocompose> python autocompose.py 324733d43248 c3cb064f48de 94e795301c19
Traceback (most recent call last):
File "autocompose.py", line 126, in <module>
main()
File "autocompose.py", line 15, in main
cfile, networks = generate(cname)
File "autocompose.py", line 33, in generate
cid = [x.short_id for x in c.containers.list() if cname == x.name or x.short_id in cname][0]
AttributeError: 'function' object has no attribute 'list'
Hmm... what version of the "docker" python module do you have?
I was getting the same error. Fixed it by installing docker 2.1.0 as described here: https://github.com/docker/docker-py/issues/2177
pip install docker==2.1.0
I didn't know you could install docker via pip?
Its not Docker itself. Installing "docker" with pip installs the docker Python module.
Should this be PR'ed into a requirements.txt file?
So I've been trying to get this working. I think you need to supply your dependency versions? You could try doing a pip list or pip freeze? I'm planning to give you a pull request with a requirements file so that you can just install dependencies with 1 command (and other people won't run into this problem).