MCPcopy
hub / github.com/docker/docker-py / remove_network

Method remove_network

docker/api/network.py:177–186  ·  view source on GitHub ↗

Remove a network. Similar to the ``docker network rm`` command. Args: net_id (str): The network's id

(self, net_id)

Source from the content-addressed store, hash-verified

175
176 @check_resource('net_id')
177 def remove_network(self, net_id):
178 """
179 Remove a network. Similar to the ``docker network rm`` command.
180
181 Args:
182 net_id (str): The network's id
183 """
184 url = self._url("/networks/{0}", net_id)
185 res = self._delete(url)
186 self._raise_for_status(res)
187
188 @check_resource('net_id')
189 def inspect_network(self, net_id, verbose=None, scope=None):

Callers 7

tearDownMethod · 0.80
test_remove_networkMethod · 0.80
test_remove_networkMethod · 0.80
tearDownMethod · 0.80
removeMethod · 0.80

Calls 3

_urlMethod · 0.80
_deleteMethod · 0.80
_raise_for_statusMethod · 0.80