<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
  <channel>
    <title>Tomofumi Chiba - Leaves</title>
    <link>https://leaves.chiba.dev/users/chiba</link>
    <description>Tomofumi Chiba - Leaves</description>
    <image>
      <url>https://leaves.chiba.dev/favicon.ico</url>
    </image>
    
    <item>
      <title>あえて WSL1 をインストールする | Tomofumi Chiba - Leaves</title>
      <link>https://leaves.chiba.dev/posts/445</link>
      <pubDate>Fri, 02 Oct 2026 10:21:06 GMT</pubDate>
      <guid>445</guid>
      <description>
#### あえて WSL1 をインストールする

```
wsl --install Ubuntu --name wsl1
wsl --set-version wsl1 1
```

      </description>
    </item>
    
    <item>
      <title>wslc | Tomofumi Chiba - Leaves</title>
      <link>https://leaves.chiba.dev/posts/444</link>
      <pubDate>Thu, 01 Oct 2026 22:48:51 GMT</pubDate>
      <guid>444</guid>
      <description>
#### wslc

```
notepad $PROFILE   # ファイルがなければ先に New-Item -Force $PROFILE
```

```
Set-Alias docker wslc
```

      </description>
    </item>
    
    <item>
      <title>WSL + Docker 環境の使用領域を縮小する | Tomofumi Chiba - Leaves</title>
      <link>https://leaves.chiba.dev/posts/442</link>
      <pubDate>Wed, 09 Sep 2026 06:52:39 GMT</pubDate>
      <guid>442</guid>
      <description>
### WSL + Docker 環境の使用領域を縮小する

---

#### 確認

##### WSL の仮想ディスクを確認

PowerShell:

```powershell
Get-ChildItem $env:LOCALAPPDATA -Recurse -Filter ext4.vhdx -ErrorAction SilentlyContinue |
Select-Object FullName,Length
```
ext4.vhdx のパスとサイズが確認できる。

##### Docker 使用量を確認

```bash
docker system df
```

#### 一括削除

```bash
$ docker system prune -a --volumes
```

削除対象:

- 停止済みコンテナ
- 未使用イメージ
- 未使用ネットワーク
- 未使用ボリューム
- Build Cache

#### WSL 仮想ディスクを圧縮

##### WSL 停止

PowerShell:

```powershell
PS &gt; wsl --shutdown
```

##### VHDX 圧縮

管理者 PowerShell:

```
PS &gt; diskpart
DISKPART&gt; select vdisk file=&quot;&lt;ext4.vhdx へのパス&gt;&quot;
DISKPART&gt; compact vdisk
DISKPART&gt; exit
```
削除分が確実に C ドライブへ反映される。

---

#### Appendix

##### Docker ボリューム詳細確認

```bash
docker system df -v
```

#### Docker の不要データ削除

##### Build Cache 削除

```bash
docker builder prune -a
```

##### 停止済みコンテナ削除

```bash
docker container prune
```

##### 未使用イメージ削除

```bash
docker image prune -a
```

##### 未使用 Volume 削除

⚠️ データ削除あり

```bash
docker volume prune
```

      </description>
    </item>
    
    <item>
      <title>Markdown ファイルのリンク切れチェック | Tomofumi Chiba - Leaves</title>
      <link>https://leaves.chiba.dev/posts/441</link>
      <pubDate>Tue, 25 Aug 2026 22:13:13 GMT</pubDate>
      <guid>441</guid>
      <description>
#### Markdown ファイルのリンク切れチェック

repository root で実行
```
docker run --init -it --rm -w /input -v $(pwd):/input lycheeverse/lychee --extensions md --root-dir . --accept &quot;200..=299, 401, 403&quot; --max-concurrency 1 .
```

パスをドットで指定すると gitignore された部分はチェック対象から外すらしい

option を lychee.toml にまとめる場合
```
extensions = [&quot;md&quot;]
root_dir = &quot;.&quot;
verbose = &quot;debug&quot;
accept = [&quot;200..=299&quot;, &quot;401&quot;, &quot;403&quot;]
max_concurrency = 1
exclude = [&quot;^https?://localhost&quot;, &quot;^https?://127\\.0\\.0\\.1&quot;]
```

##### 参考
- https://zenn.dev/yamadatt/articles/20250118_dead-link-lychee
- https://lychee.cli.rs/

tag: dead link check

      </description>
    </item>
    
    <item>
      <title>devcontainer CLI | Tomofumi Chiba - Leaves</title>
      <link>https://leaves.chiba.dev/posts/440</link>
      <pubDate>Tue, 14 Jul 2026 13:17:26 GMT</pubDate>
      <guid>440</guid>
      <description>
# devcontainer CLI

## Deno で install
```
deno install -g -RE --allow-sys --allow-run=docker,git -N=containers.dev,ghcr.io,pkg-containers.githubusercontent.com -W=/tmp npm:@devcontainers/cli
```
```
devcontainer up --workspace-folder .
```

```
devcontainer exec bash
```

container 内で vs code を動かしてみる
```plain
code serve-web --host 0.0.0.0 --port 8000 --without-connection-token --accept-server-license-terms --default-folder .
```
      </description>
    </item>
    
  </channel>
</rss>