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

Failed to run gateway = net.attrs["IPAM"]["Config"][0]["Subnet"] TypeError: 'NoneType' object is not subscriptable #35

Open
d-hieu-00 opened this issue Aug 13, 2024 · 1 comment

Comments

@d-hieu-00
Copy link

I got error when try run this
Same as when use the docker image docker run --rm -v /var/run/docker.sock:/var/run/docker.sock leoverto/docker-network-graph

sudo python3 -m pipenv --python=/usr/bin/python3 run python docker-net-graph.py -o output.svg
Traceback (most recent call last):
  File "/home/era/docker-network-graph/docker-net-graph.py", line 211, in <module>
    generate_graph(args.verbose, args.out)
  File "/home/era/docker-network-graph/docker-net-graph.py", line 173, in generate_graph
    networks = get_networks(docker_client, verbose)
  File "/home/era/docker-network-graph/docker-net-graph.py", line 66, in get_networks
    gateway = net.attrs["IPAM"]["Config"][0]["Subnet"]
TypeError: 'NoneType' object is not subscriptable
@BlackWolfWoof
Copy link

Same issue here

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