「WSL」の版間の差分
ナビゲーションに移動
検索に移動
(→管理) |
|||
| 49行目: | 49行目: | ||
gnupg-agent \ | gnupg-agent \ | ||
software-properties-common | software-properties-common | ||
| + | $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | ||
| + | </pre> | ||
| + | *フィンガープリントの確認 | ||
| + | <pre> | ||
| + | $ sudo apt-key fingerprint 0EBFCD88 | ||
| + | pub rsa4096 2017-02-22 [SCEA] | ||
| + | 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88 | ||
| + | uid [ unknown] Docker Release (CE deb) <docker@docker.com> | ||
| + | sub rsa4096 2017-02-22 [S] | ||
| + | </pre> | ||
| + | <pre> | ||
| + | $ sudo add-apt-repository \
| ||
| + | "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
| ||
| + | $(lsb_release -cs) \ | ||
| + | stable" | ||
| + | </pre> | ||
| + | |||
| + | <pre> | ||
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 | curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 | ||
</pre> | </pre> | ||
2020年9月30日 (水) 14:50時点における版
目次
WSL
Linux用Subシステムの有効化
- Powershellを管理者で実行し、以下
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
WSL2に更新
- x64 システムの場合:バージョン 1903 以降、ビルド 18362 以上
- 18362 より前のビルドは WSL 2 をサポートしていません
仮想マシン機能を有効に
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
カーネル更新パッケージのダウンロードと実行
- SL 2 を実行するには、カーネル コンポーネントの更新が必要です。詳細については https://aka.ms/wsl2kernel を参照してください
- WSL 2 との主な違いについては、https://aka.ms/wsl2 を参照してください
WSL2を既定のバージョンとする1
wsl --set-default-version 2
Linuxディストリビューションの選択
トラブルシュート
管理
WSLのファイルをエクスプローラーに表示
\\wsl$
WindowsのCドライブをWSLから参照
/mnt/c
Kubernetes/Docker
install Ubuntu
$ sudo apt-get update
$ sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- フィンガープリントの確認
$ sudo apt-key fingerprint 0EBFCD88
pub rsa4096 2017-02-22 [SCEA]
9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88
uid [ unknown] Docker Release (CE deb) <docker@docker.com>
sub rsa4096 2017-02-22 [S]
$ sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
© 2006 矢木浩人