# Windows Server Docker 安裝、啟動方法 ###### tags: `docker` `工作筆記` 先下載docker 的 zip檔 https://dockermsft.blob.core.windows.net/dockercontainer/docker-19-03-1.zip ```cmd= # Extract the archive. Expand-Archive docker-19-03-1.zip -DestinationPath $Env:ProgramFiles # Clean up the zip file. Remove-Item -Force docker-19-03-1zip # Install Docker. This requires rebooting. $null = Install-WindowsFeature containers # Add Docker to the path for the current session. $env:path += ";$env:ProgramFiles\docker" # Optionally, modify PATH to persist across sessions. $newPath = "$env:ProgramFiles\docker;" + [Environment]::GetEnvironmentVariable("PATH", [EnvironmentVariableTarget]::Machine) [Environment]::SetEnvironmentVariable("PATH", $newPath, [EnvironmentVariableTarget]::Machine) # Register the Docker daemon as a service. dockerd --register-service # Start the Docker service. Start-Service docker New-LocalGroup -Name docker-users dockerd --register-service -G docker-users --config-file C:\docker\daemon.json Start-Service docker ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up