LoginSignup
2
1

More than 3 years have passed since last update.

Windows10 Homeクリーンインストール ~Docker事始め~

Last updated at Posted at 2020-01-07

はじめに

環境構築のメモ。
Windowsクリーンインストール~Docker-composeまで。

環境

  • Windows10 Home 64bit

準備

このサイトからMediaCreationToolをダウンロードしてUSBメモリ等に焼く。
SDカードでも可。

セットアップ

HDDの領域をすべて削除して統合する。
ユーザフォルダ名を指定したいので、ローカルアカウントを作成する。
Windows Insider ProgramをSlowに設定する。(2020/1/7現在 OSビルド19041.1)

Chocolately

アプリケーションを一括管理したいのでChocolatelyを使用する。

  • Chocolatelyのインストール
PowerShell
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
  • アプリケーションの一括インストール
PowerShell
cinst -y vscode adobereader chrome-remote-desktop-chrome sakuraeditor musicbee steam spotify itunes discord skype git mp3tag winmerge mpc-be eac

WSL2

  • WSLの有効化
PowerShell
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
  • Ubuntu 18.04 LTSインストール

  • WSL→WSL2への変換

PowerShell
wsl --set-version Ubuntu 2
wsl --set-default-version 2

wsl -l -v
  NAME      STATE           VERSION
* Ubuntu    Running         2

DockerCE

  • 依存関係のパッケージをインストール
Ubuntu
$ sudo apt-get update
$ sudo apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common
  • GPGキーのダウンロード
Ubuntu
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
  • Repositoryの設定
Ubuntu
$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
  • DockerCEのインストール
Ubuntu
$ sudo apt-get update
$ sudo apt-get install -y docker-ce docker-ce-cli containerd.io
  • Dockerの起動
Ubuntu
$ sudo service docker start
$ sudo docker run hello-world

Hello from Docker!
This message shows that your installation appears to be working correctly.
.
.
.
For more examples and ideas, visit:
 https://docs.docker.com/get-started/

Docker-composeのインストール

Ubuntu
$ sudo curl -L "https://github.com/docker/compose/releases/download/1.25.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
$ sudo chmod +x /usr/local/bin/docker-compose
$ docker-compose --version

docker-compose version 1.25.1, build a82fef07
2
1
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
2
1