Docker: TaskNuke remove those annoying orphaned tasks from a network

The setting:

$ docker network rm myNetwork
Error response from daemon: rpc error: code = FailedPrecondition desc = network kny0nsuae9ymnpzjzufrefn9a is in use by task iczzsz7yrrafhn08y1slnhr8l

The solution:

$ docker pull dperny/tasknuke!
$ docker run -v /var/run/docker/swarm/control.sock:/var/run/swarmd.sock dperny/tasknuke iczzsz7yrrafhn08y1slnhr8l
iczzsz7yrrafhn08y1slnhr8l

The glorious source: success.docker.com – How to force remove an orphaned task from a network