Docker: Error response from daemon: rpc error: code = 7 desc = network not manually attachable:
I got this error: ‘docker rpc error code desc network not manually attachable’
when i try to create containers on the overla network on swarm mode enabled,
In docker 1.12 with swarm mode enabled,
“Swarm” scoped networks (check “SCOPE” column) cannot be used for docker run, only for services and now it has been rectified.
I’m using updated version of docker, but still why i’m experiencing the error ?
because the network just created but not manually attachable.
To fix the issue we gonna use –attachable flag while creating network.
[ –attachable Enable manual container attachment ]
(Need to create service on the overlay network, so that the overlay network will available / list on the worker node)
docker inspect attnw (attnw is our test network)should show your own container names on the overlay network across the nodes (manager / worker) and must reachable.