1
0
Fork 0

changed startup type for docker

This commit is contained in:
Christian Kühnel 2020-03-25 16:12:31 +01:00
parent 8fd5aa6550
commit 3f81b7fb2a

View file

@ -16,8 +16,8 @@
# This script only needs to be run once per machine. # This script only needs to be run once per machine.
Write-Host "Initializing local SSD..." Write-Host "Initializing local SSD..."
#New-Variable -Name diskid -Value (Get-Disk -FriendlyName "Google EphemeralDisk").Number New-Variable -Name diskid -Value (Get-Disk -FriendlyName "Google EphemeralDisk").Number
New-Variable -Name diskid -Value (Get-Disk -FriendlyName "NVMe nvme_card").Number #New-Variable -Name diskid -Value (Get-Disk -FriendlyName "NVMe nvme_card").Number
# TODO: check if machine has an SSD # TODO: check if machine has an SSD
# TODO: only do this, if SSD is not yet partioned and formatted # TODO: only do this, if SSD is not yet partioned and formatted
@ -38,7 +38,7 @@ cmd /C "mklink /j C:\ProgramData\Docker D:\docker"
Install-PackageProvider -Name NuGet -Force Install-PackageProvider -Name NuGet -Force
Install-Module -Name DockerMsftProvider -Repository PSGallery -Force Install-Module -Name DockerMsftProvider -Repository PSGallery -Force
Install-Package -Name docker -ProviderName DockerMsftProvider -Force Install-Package -Name docker -ProviderName DockerMsftProvider -Force
Set-Service -Name docker -StartupType Automatic Set-Service -Name docker -StartupType AutomaticDelayedStart
# install gcloud and authenticate access to gcr.io registry # install gcloud and authenticate access to gcr.io registry
# TODO: find a better way to install the Google Cloud SDK, avoid ingoring the checksum # TODO: find a better way to install the Google Cloud SDK, avoid ingoring the checksum