Skip to content

bgelens/cWindowsContainer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

cWindowsContainer

Class Based DSC resource to deploy Windows Containers with.

configuration NewContainer {
    Import-DscResource -ModuleName cWindowsContainer

    cWindowsContainer MyAppContainer {
        Ensure = 'Present'
        Name = 'MyAppContainer'
        StartUpScript = '"Hello World" | out-file c:\hello.txt'
    }
}
NewContainer
Start-DscConfiguration .\NewContainer -Wait -Verbose


configuration RemContainer {
    Import-DscResource -ModuleName cWindowsContainer

    cWindowsContainer MyAppContainer {
        Ensure = 'Absent'
        Name = 'MyAppContainer'
    }
}
RemContainer
Start-DscConfiguration .\RemContainer -Wait -Verbose

About

DSC Class Based resource to create Windows Containers

Resources

License

Stars

Watchers

Forks

Packages

No packages published