Skip to content
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

Container with network within another container #48

Open
LordDeimos666 opened this issue Sep 3, 2022 · 2 comments
Open

Container with network within another container #48

LordDeimos666 opened this issue Sep 3, 2022 · 2 comments

Comments

@LordDeimos666
Copy link

While tring to get the docker compose of an old container that use the network of another container it gives this error:

Traceback (most recent call last): File "/root/docker-autocompose-master/autocompose.py", line 211, in <module> main() File "/root/docker-autocompose-master/autocompose.py", line 29, in main cfile, c_networks, c_volumes = generate(cname, createvolumes=args.createvolumes) File "/root/docker-autocompose-master/autocompose.py", line 140, in generate assumed_default_network = list(cattrs['NetworkSettings']['Networks'].keys())[0] IndexError: list index out of range

The old docker command for the network was --network=container:2fa4041a6e80a5499dbef6671ba30c2c40d40b70a4280db6d064bf20c43f5c6a

@yeyeto2788
Copy link
Contributor

Hey @LordDeimos666

Can you try this #53? that error should go away.

@LordDeimos666
Copy link
Author

Sorry for the late answer.
Not working, the nested network mode is not giving any result.
I expect to have for example:
network_mode: "service:wireguard"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants