Red5d / docker-autocompose

Generate a docker-compose yaml definition from a running container
1.77k stars 197 forks source link

Doesn't work with python-docker 4.2.0 #12

Closed lemmy04 closed 3 years ago

lemmy04 commented 3 years ago
lemmy@akari:~/Work/susebuildservice/home:lemmy04/python-docker-autocompose/t/docker-autocompose> python3 ./autocompose.py awx_task awx_web
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 30, in generate
    c = docker.from_env()
AttributeError: module 'docker' has no attribute 'from_env'

python-docker 2.0.0 is several years old by now, can this be adapted to python-docker 4.2.0?

lemmy04 commented 3 years ago

it actually works fine... but installing the old python-docker-py with pip on top of the distro-provided python-docker 4.2.0 had seriously messed up things o.0