Docker: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 1: | Line 1: | ||
'''Windows 10 Home''' | '''Windows 10 Home''' | ||
<source lang=" | <source lang="powershell"> | ||
# powershell | |||
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart | dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart | ||
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart | dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart | ||
Line 6: | Line 7: | ||
</source> | </source> | ||
<source lang=" | <source lang="powershell"> | ||
# powershell | |||
docker pull hello-world | docker pull hello-world | ||
docker run -it --rm --name hello hello-world:latest | docker run -it --rm --name hello hello-world:latest | ||
</source> | |||
<source lang="bash"> | |||
# gitbash | |||
winpty docker pull hello-world | |||
winpty docker run -it --rm --name hello hello-world:latest | winpty docker run -it --rm --name hello hello-world:latest | ||
</source> | </source> |
Revision as of 09:33, 14 August 2020
Windows 10 Home
# powershell
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
wsl --set-default-version 2
# powershell
docker pull hello-world
docker run -it --rm --name hello hello-world:latest
# gitbash
winpty docker pull hello-world
winpty docker run -it --rm --name hello hello-world:latest