Clean install Windows It's a good opportunity to note the installation procedure for VSCode with Docker on Ubuntu on WSL without Docker Desktop on Windows. I don't know if this is happy
PowerShell administrator
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
```powershell
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Restart Windows
PowerShell administrator
wsl --set-default-version 2
## Install Ubuntu 18.04 LTS
1. Obtain, install and launch from [Microsoft Store](https://www.microsoft.com/store/apps/9N9TNGVNDL3Q)
## Install Docker
1. Install using the repository
* [Primary information](https://docs.docker.com/engine/install/ubuntu/)
```bash
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 add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
sudo groupadd docker
```bash
sudo usermod -aG docker $USER
newgrp docker
sudo vi /etc/docker/daemon.json
#### **`/etc/docker/daemon.json`**
```vim
{
"hosts": ["unix:///var/run/docker.sock", "tcp://127.0.0.1:2375"]
}
sudo service docker restart
$ docker --version
Docker version 19.03.13, build 4484c46d9d
$ sudo netstat -lntp | grep dockerd
tcp 0 0 127.0.0.1:2375 0.0.0.0:* LISTEN 3973/dockerd
that's all
Recommended Posts