Fix/unplug stalled endpoints

Merged Tomasz Maczukin requested to merge fix/unplug-stalled-endpoints into master

This is a general Merge Request template. Consider to choose a template from the list above if it will match your case more.

What does this MR do?

Forces unlinking docker containers from docker networks while removing containers. This is to prevent docker API errors described in #1642 (closed).

Why was this MR needed?

Successor of !337 (closed). Please look into !337 (closed) and #1642 (closed) for more details.

Are there points in the code the reviewer needs to double check?

Does this MR meet the acceptance criteria?

  • Documentation created/updated
  • Tests
    • Added for this feature/bug
    • All builds are passing
  • Branch has no merge conflicts with master (if you do - rebase it please)

What are the relevant issue numbers?

Fixes #1642 (closed)

/fyi @stanhu