LoginSignup
3
3

docker(76)Windows 10 homeにdockerを

Last updated at Posted at 2019-08-26
1 / 2

Windowsだと、Hiper-Vが無効になっていると導入できない。
docker.png

Windows 10 homeだと、そのままでは下記エラーで止まる。
docker2.png

「WSL 2」は「Windows 10 Home」でも利用可能 ~MicrosoftがFAQを掲載
https://forest.watch.impress.co.jp/docs/news/1184353.html

How to install Windows Subsystem for Linux 2 (WSL 2) on Windows 10
https://betanews.com/2019/06/19/install-wsl-2-on-windows-10/

上記記事の

Microsoft storeをクリックする
https://aka.ms/wslstore

wsl.png

ubuntuを選ぶ

wsl2.png

wsl3.png

wsl4.png

起動すると、次のエラーで止まった。

Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x8007019e
The Windows Subsystem for Linux optional component is not enabled. Please enable it and try again.
See https://aka.ms/wslinstall for details.
Press any key to continue...

https://aka.ms/wslinstall
を開くと次のURLになった。
https://docs.microsoft.com/ja-jp/windows/wsl/install-win10

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

> Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Enable-WindowsOptionalFeature : 要求された操作には管理者特権が必要です。
発生場所 行:1 文字:1
+ Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows- ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Enable-WindowsOptionalFeature], COMException
    + FullyQualifiedErrorId : Microsoft.Dism.Commands.EnableWindowsOptionalFeatureCommand

どちらも管理者で実行してるのに。

Windows10で管理者なのに管理者権限がないと表示される問題の対処法!
https://aprico-media.com/posts/2049

ユーザアカウント制御   X
このアプリがデバイスに変更を加えることを許可しますか?
Windows Power Shell
確認済みの発行元: Microsoft Windows
詳細を表示
はい いいえ

「はい」を選ぶと

PS C:¥Windows¥System32> Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-
[oooooooooo ]

で1分ぐらい止まったのち、oが増えていき右まで辿り着くと。

PS C:¥Windows¥System32> Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
この操作を完了するために、今すぐコンピュータを再起動しますか?
[Y] Yes [N] No [?]ヘルプ (規定値は "Y"):

再起動

docker3.png

docker4.png

でも駄目だった。
今度は、ダウンロードに保存したプログラムの起動方法を変えてみる。

docker5.png

ユーザアカウント制御   X
このアプリがデバイスに変更を加えることを許可しますか?
Docker Desktop Installer
確認済みの発行元: Docker Inc.
ファイルの入手先:このコンピュータ上のハードディスク
詳細を表示
はい いいえ

「はい」を選ぶ

結果、一番最初と同じエラー。泣)

文書履歴(document history)

ver. 0.01 初稿 20190826 昼
ver. 0.02 Enable-WindowsOptionalFeature 20190826 午後
ver. 0.03 アプリの属性を変えた 20190826 夕方

最後までおよみいただきありがとうございました。

いいね 💚、フォローをお願いします。

Thank you very much for reading to the last sentence.

Please press the like icon 💚 and follow me for your happy life.

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3