We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3853a4 commit 06b8b9dCopy full SHA for 06b8b9d
1 file changed
helpful_tools/Install-DockerCE/install-docker-ce.ps1
@@ -250,6 +250,14 @@ Install-Feature
250
function
251
New-ContainerTransparentNetwork
252
{
253
+ # Check if transparent network already created
254
+ $networkList = docker network ls
255
+ if ($networkList -match '\bTransparent\b') {
256
+ Write-Output "Network with the name Transparent exists."
257
+ return
258
+ }
259
+
260
+ # Continue with network creation
261
if ($ExternalNetAdapter)
262
263
$netAdapter = (Get-NetAdapter |? {$_.Name -eq "$ExternalNetAdapter"})[0]
0 commit comments