Take your PowerShell script from an environment variable and run it in a container
1.2K
Takes your PowerShell script from an environment variable and runs it in a container.
docker run -e SCRIPT='While($True){Get-Date; Start-Sleep 1}' nickadam/pwsh_env_script
See docker-compose.yml for an example script, notice the $$ in place of $ for variable names.
Content type
Image
Digest
Size
127.9 MB
Last updated
over 6 years ago
docker pull nickadam/pwsh_env_script