Check WSL updates and force default distribution
This commit is contained in:
parent
979f886e20
commit
4b5b7b38a2
@ -1,6 +1,12 @@
|
|||||||
param([switch] $remote = $false)
|
param([switch] $remote = $false)
|
||||||
|
|
||||||
Write-Host "OSIC-Stacks Container Creation" -ForegroundColor Green
|
Write-Host "OSIC-Stacks Container Creation" -ForegroundColor Green
|
||||||
|
Write-Host "Checking WSL updates" -ForegroundColor DarkGray
|
||||||
|
|
||||||
|
Write-Host ""
|
||||||
|
wsl --update
|
||||||
|
Write-Host ""
|
||||||
|
|
||||||
Write-Host "Please select an image index:"
|
Write-Host "Please select an image index:"
|
||||||
|
|
||||||
$imageoptions = @(
|
$imageoptions = @(
|
||||||
@ -38,7 +44,7 @@ $dockercommand = ("docker run -d " +
|
|||||||
"-e XDG_RUNTIME_DIR=/mnt/wslg " +
|
"-e XDG_RUNTIME_DIR=/mnt/wslg " +
|
||||||
$image)
|
$image)
|
||||||
|
|
||||||
wsl bash -ic $dockercommand
|
wsl -d Ubuntu bash -ic $dockercommand
|
||||||
|
|
||||||
if ($?) {
|
if ($?) {
|
||||||
Write-Host "Container created successfully!" -ForegroundColor Green
|
Write-Host "Container created successfully!" -ForegroundColor Green
|
||||||
|
Loading…
Reference in New Issue
Block a user