Add a Directory to a Container

%3CLINGO-SUB%20id%3D%22lingo-sub-261539%22%20slang%3D%22en-US%22%3EAdd%20a%20Directory%20to%20a%20Container%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-261539%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20trying%20to%20add%20a%20couple%20directories%20to%20a%20new%20container%20at%20creation%20using%20the%20found%20scripts.%3C%2FP%3E%3CP%3E...Script%20above%20works.....%3C%2FP%3E%3CP%3E%23%20create%20directory%20within%20SQL%20container%20for%20database%20files%3CBR%20%2F%3ERUN%20powershell%20-Command%20(mkdir%20C%3A%5C%5CSQLServerData)%3CBR%20%2F%3ERUN%20powershell%20-Command%20(mkdir%20C%3A%5C%5CSQLServerLog).%3C%2FP%3E%3CP%3EThey%20error%20out%20here.%26nbsp%3B%20I%20am%20not%20a%20big%20powershell%20user%20and%20I%20am%20new%20to%20containers%20and%20trying%20to%20learn%20at%20%22warp%22%20speed.%26nbsp%3B%20I%20did%20locate%20some%20info%20that%20said%20to%20place%20a%20-p%20after%20mkdir%20and%20that%20got%20me%20further%20but%20still%20generated%20an%20error.%26nbsp%3B%26nbsp%3B%20Any%20help%20on%20this%20would%20be%20appreciated.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-261539%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EContainers%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Visitor

I am trying to add a couple directories to a new container at creation using the found scripts.

...Script above works.....

# create directory within SQL container for database files
RUN powershell -Command (mkdir C:\\SQLServerData)
RUN powershell -Command (mkdir C:\\SQLServerLog).

They error out here.  I am not a big powershell user and I am new to containers and trying to learn at "warp" speed.  I did locate some info that said to place a -p after mkdir and that got me further but still generated an error.   Any help on this would be appreciated. 

0 Replies