Leveraging the docker approach from https://gist.github.com/marcelrv/e7dac93863945dccc46f70915c84b5dbfor c in $CIDS; do mkdir ~/dockercontainers/$c ; docker run --rm -v /var/run/docker.sock:/var/run/docker.sock ghcr.io/red5d/docker-autocompose $c > ~/dockercontainers/$c/docker-compose.yml ; done
leads to some errors on ubuntu 20.4/latest for some containers as per the error message:
Traceback (most recent call last):
File "/usr/src/app/./autocompose.py", line 164, in
main()
File "/usr/src/app/./autocompose.py", line 27, in main
cfile, c_networks, c_volumes = generate(cname)
File "/usr/src/app/./autocompose.py", line 127, in generate
for volume in values['volumes']:
It seems to relate to no volume defined as per:
docker inspect dcc398077dd8
Leveraging the docker approach from https://gist.github.com/marcelrv/e7dac93863945dccc46f70915c84b5db
for c in $CIDS; do mkdir ~/dockercontainers/$c ; docker run --rm -v /var/run/docker.sock:/var/run/docker.sock ghcr.io/red5d/docker-autocompose $c > ~/dockercontainers/$c/docker-compose.yml ; done
leads to some errors on ubuntu 20.4/latest for some containers as per the error message:It seems to relate to no volume defined as per:
docker inspect dcc398077dd8