Description
When I install a network, remove it and reinstall a network, the plugin infra remembers the older socket and tries to access that when the plugin is used to create a new network.
Steps to reproduce the issue:
$ sudo docker plugin install tiborvass/test-docker-netplugin
Plugin "tiborvass/test-docker-netplugin" is requesting the following privileges:
- network: [host]
Do you grant the above permissions? [y/N] y
tiborvass/test-docker-netplugin
madhu@Ubuntu-vm libnetwork (br-plugin) $ sudo docker plugin ls
ID NAME TAG DESCRIPTION ENABLED
8c26b409b747 tiborvass/test-docker-netplugin latest Test network plugin for Docker true
madhu@Ubuntu-vm libnetwork (br-plugin) $ sudo docker plugin rm -f tiborvass/test-docker-netplugin:latest
tiborvass/test-docker-netplugin:latest
madhu@Ubuntu-vm libnetwork (br-plugin) $ sudo docker plugin install tiborvass/test-docker-netplugin
Plugin "tiborvass/test-docker-netplugin" is requesting the following privileges:
- network: [host]
Do you grant the above permissions? [y/N] y
tiborvass/test-docker-netplugin
madhu@Ubuntu-vm libnetwork (br-plugin) $ sudo docker plugin ls
ID NAME TAG DESCRIPTION ENABLED
9a33816550db tiborvass/test-docker-netplugin latest Test network plugin for Docker true
madhu@Ubuntu-vm libnetwork (br-plugin) $ sudo docker network create -d tiborvass/test-docker-netplugin:latest testnet2
Error response from daemon: Post http://%2Frun%2Fdocker%2Fplugins%2F8c26b409b7479443e5118df4a01415091b419ea2633d4b169f61f2890efe6b4e%2Fplugin.sock/NetworkDriver.CreateNetwork: dial unix /run/docker/plugins/8c26b409b7479443e5118df4a01415091b419ea2633d4b169f61f2890efe6b4e/plugin.sock: connect: no such file or directory
Description
When I install a network, remove it and reinstall a network, the plugin infra remembers the older socket and tries to access that when the plugin is used to create a new network.
Steps to reproduce the issue: