Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using the code below as a starting point, fill in the function body to do the following things. The function should accept two arguments. The

Using the code below as a starting point, fill in the function body to do the following things.

The function should accept two arguments. The first will be the name of a new container to create and the second should be the IP address of that container. After you have filled in the missing pieces in the function body, you should be able to run the script and then see that a new container with the name test and the IP address 172.16.31.254.

Name the file container.ps1

function Create-Container { param( [string]$network, [string]$containerName ) # Use the parameters above to create a container using docker  } # Call the function to create a container Create-Container -network "172.16.31.20" -containerName "function"

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Marketing The Ultimate Marketing Tool

Authors: Edward L. Nash

1st Edition

0070460639, 978-0070460638

More Books

Students also viewed these Databases questions