title: Docker: Can't remove macvlan configuration network
body: <p>Using portainer, I created a macvlan configuration network. Now, I want to remove this network. However, for some reason, I can't. I do receive the following error msg: <code>Error response from daemon: error while removing network: configuration network &quot;my_macvlan_config&quot; is in use</code>.
  The weird thing is that I don't think that the network is in use. There is no container attached to it. When inspecting the network, I get the following results:</p>
  <pre><code>~$ sudo docker network inspect my_macvlan_config
  [
      {
          &quot;Name&quot;: &quot;my_macvlan_config&quot;,
          &quot;Id&quot;: &quot;5d95270684516484632c4505e15ba8253bbe8d780b2c41a84a07fbbe09d7a9b6&quot;,
          &quot;Created&quot;: &quot;2020-05-18T20:59:03.472260896+02:00&quot;,
          &quot;Scope&quot;: &quot;local&quot;,
          &quot;Driver&quot;: &quot;null&quot;,
          &quot;EnableIPv6&quot;: false,
          &quot;IPAM&quot;: {
              &quot;Driver&quot;: &quot;default&quot;,
              &quot;Options&quot;: null,
              &quot;Config&quot;: [
                  {
                      &quot;Subnet&quot;: &quot;192.168.13.0/24&quot;,
                      &quot;IPRange&quot;: &quot;192.168.13.200/29&quot;,
                      &quot;Gateway&quot;: &quot;192.168.13.1&quot;
                  }
              ]
          },
          &quot;Internal&quot;: false,
          &quot;Attachable&quot;: false,
          &quot;Ingress&quot;: false,
          &quot;ConfigFrom&quot;: {
              &quot;Network&quot;: &quot;&quot;
          },
          &quot;ConfigOnly&quot;: true,
          &quot;Containers&quot;: {},
          &quot;Options&quot;: {
              &quot;parent&quot;: &quot;eth0&quot;
          },
          &quot;Labels&quot;: {}
      }
  ]
  </code></pre>
  <p>Docker itself is running on my Synology Diskstation, fwiw.</p>
  <p>EDIT:
  There's another network called <code>macvlan</code> that is connected to <code>my_macvlan_config</code>.</p>
  <pre><code>~$ sudo docker network inspect macvlan
  [
      {
          &quot;Name&quot;: &quot;macvlan&quot;,
          &quot;Id&quot;: &quot;8a831afa776475b01ca240f4b6b2434c820b8a03910b402760e3cd988e7ddb5c&quot;,
          &quot;Created&quot;: &quot;2020-05-23T23:11:17.738229138+02:00&quot;,
          &quot;Scope&quot;: &quot;local&quot;,
          &quot;Driver&quot;: &quot;macvlan&quot;,
          &quot;EnableIPv6&quot;: false,
          &quot;IPAM&quot;: {
              &quot;Driver&quot;: &quot;default&quot;,
              &quot;Options&quot;: null,
              &quot;Config&quot;: [
                  {
                      &quot;Subnet&quot;: &quot;192.168.13.0/24&quot;,
                      &quot;IPRange&quot;: &quot;192.168.13.210/29&quot;,
                      &quot;Gateway&quot;: &quot;192.168.13.1&quot;
                  }
              ]
          },
          &quot;Internal&quot;: false,
          &quot;Attachable&quot;: false,
          &quot;Ingress&quot;: false,
          &quot;ConfigFrom&quot;: {
              &quot;Network&quot;: &quot;macvlan_config&quot;
          },
          &quot;ConfigOnly&quot;: false,
          &quot;Containers&quot;: {
              &quot;6f025749fe99a22fa3729bebfa72d6329b363fe8f6589d9147d0d58a9934dd42&quot;: {
                  &quot;Name&quot;: &quot;tvheadend&quot;,
                  &quot;EndpointID&quot;: &quot;bc827cb2fddc4374fde7634534efd0c8c110af5a70aa9b16a319b770dfe7a0f2&quot;,
                  &quot;MacAddress&quot;: &quot;02:42:c0:a8:0d:d3&quot;,
                  &quot;IPv4Address&quot;: &quot;192.168.13.211/24&quot;,
                  &quot;IPv6Address&quot;: &quot;&quot;
              }
          },
          &quot;Options&quot;: {
              &quot;parent&quot;: &quot;eth0&quot;
          },
          &quot;Labels&quot;: {}
      }
  ]
  </code></pre>
  <p>And there's one more network, which is apparently unrelated.</p>
  <pre><code>~$ sudo docker network inspect macvlan_config
  [
      {
          &quot;Name&quot;: &quot;macvlan_config&quot;,
          &quot;Id&quot;: &quot;644a15c6b9e653ec3f48c4a2e290f996b41361170d5ab63053b87a301168345f&quot;,
          &quot;Created&quot;: &quot;2020-05-23T23:10:54.880348491+02:00&quot;,
          &quot;Scope&quot;: &quot;local&quot;,
          &quot;Driver&quot;: &quot;null&quot;,
          &quot;EnableIPv6&quot;: false,
          &quot;IPAM&quot;: {
              &quot;Driver&quot;: &quot;default&quot;,
              &quot;Options&quot;: null,
              &quot;Config&quot;: [
                  {
                      &quot;Subnet&quot;: &quot;192.168.13.0/24&quot;,
                      &quot;IPRange&quot;: &quot;192.168.13.210/29&quot;,
                      &quot;Gateway&quot;: &quot;192.168.13.1&quot;
                  }
              ]
          },
          &quot;Internal&quot;: false,
          &quot;Attachable&quot;: false,
          &quot;Ingress&quot;: false,
          &quot;ConfigFrom&quot;: {
              &quot;Network&quot;: &quot;&quot;
          },
          &quot;ConfigOnly&quot;: true,
          &quot;Containers&quot;: {},
          &quot;Options&quot;: {
              &quot;parent&quot;: &quot;eth0&quot;
          },
          &quot;Labels&quot;: {}
      }
  ]
  </code></pre>
  <p>I then removed the <code>tvheadend</code> container. I was then able to delete all networks but <code>my_macvlan_config</code>.</p>