0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Docker on WSL2

Last updated at Posted at 2023-05-03

日記

環境

  • Host: WSL2 on Windows 11
  • Guest Ubuntu 22.04

手順

Power Shell
wsl --install -d Ubuntu
wsl
// login 
Bash
sudo bash
echo '[boot]' > /etc/wsl.conf
echo 'systemd=true' >> /etc/wsl.conf
Power Shell
wsl --shutdown
wsl 
// login
sudo ps -ae | grep systemd
// 1 ?        00:00:01 systemd
// 2 ?        00:00:00 init-systemd(Ub

ユーザ権限

sudo gpasswd -a kyoya docker
sudo chgrp docker /var/run/docker.sock
sudo systemctl restart docker

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?