-
Notifications
You must be signed in to change notification settings - Fork 39
Description
2025-09-01T13:15:45.886408778Z 列出配置信息:1.系统版本是:debian;2.网络环境变量是:True;
2025-09-01T13:15:45.886430447Z 处理网络 net 的配置: {
2025-09-01T13:15:45.886447458Z "IPAMConfig": {},
2025-09-01T13:15:45.886458388Z "Links": null,
2025-09-01T13:15:45.886471057Z "Aliases": [
2025-09-01T13:15:45.886480693Z "d50d314436dd"
2025-09-01T13:15:45.886509647Z ],
2025-09-01T13:15:45.886520571Z "NetworkID": "bbf638a6b7e94d55ad2cd273843f0bc2ae980aec5e660374b1b3840b854f174b",
2025-09-01T13:15:45.886531440Z "EndpointID": "531a3e9aef55c8998194b10ca704446179d78efceae3c8689ac20a78adbc9dc2",
2025-09-01T13:15:45.886543420Z "Gateway": "172.19.0.1",
2025-09-01T13:15:45.886554099Z "IPAddress": "172.19.0.3",
2025-09-01T13:15:45.886563541Z "IPPrefixLen": 16,
2025-09-01T13:15:45.886572439Z "IPv6Gateway": "",
2025-09-01T13:15:45.886581710Z "GlobalIPv6Address": "",
2025-09-01T13:15:45.886590398Z "GlobalIPv6PrefixLen": 0,
2025-09-01T13:15:45.886599153Z "MacAddress": "02:42:ac:13:00:03",
2025-09-01T13:15:45.886609940Z "DriverOpts": {}
2025-09-01T13:15:45.886618837Z }
2025-09-01T13:15:45.890245123Z Traceback (most recent call last):
2025-09-01T13:15:45.893022645Z File "/app/d2c.py", line 886, in
2025-09-01T13:15:45.893077070Z main()
2025-09-01T13:15:45.893090291Z ~~~~^^
2025-09-01T13:15:45.893100279Z File "/app/d2c.py", line 877, in main
2025-09-01T13:15:45.893111689Z file_path = generate_compose_file(group, containers, networks, output_dir)
2025-09-01T13:15:45.893122907Z File "/app/d2c.py", line 704, in generate_compose_file
2025-09-01T13:15:45.893133565Z compose['services'][service_name] = convert_container_to_service(container)
2025-09-01T13:15:45.893157579Z ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
2025-09-01T13:15:45.893167745Z File "/app/d2c.py", line 408, in convert_container_to_service
2025-09-01T13:15:45.893178785Z network_driver = networks.get(network_name, {}).get('Driver', '')
2025-09-01T13:15:45.893189741Z ^^^^^^^^
2025-09-01T13:15:45.893200341Z NameError: name 'networks' is not defined