Management of Docker networks
New in version 2017.7.0.
|depends:||docker Python module|
Older releases of the Python bindings for Docker were called docker-py in
PyPI. All releases of docker, and releases of docker-py >= 1.6.0 are
supported. These python bindings can easily be installed using
salt myminion pip.install docker
salt myminion pip.uninstall docker-py salt myminion pip.install docker
These states were moved from the
module (formerly called dockerng) in the 2017.7.0 release.
Ensure that a network is absent.
present(name, driver=None, containers=None)¶
Ensure that a network is present.
network_bar: docker_network.present - name: bar - containers: - cont1 - cont2