devcontainers / devcontainers/features
[Docker-in-Docker] Missing option to restart docker from inside the devcontainer
まだ誰も着手していません。
- 主要言語
- Shell
- スター
- 1.5k
- フォーク
- 622
- 平均マージ
- 6日 53分
- マージ済み PR(30日)
- 9
説明
Using default devcontainer setup:
"name": "Docker in Docker",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/base:bullseye",
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {
"version": "latest",
"enableNonRootDocker": "true",
"moby": "true"
}
}
The problem I experienced is, when I have changed my MTU on my host docker to e.g. 1332 I get connection disconnects inside the containers in my devcontainer environment. This is due to mismachting MTU values. Resetting my MTU on my host to 1500 resolves this problem.
So far this is no problem. Adjusting the MTUs accordingly should solve my issues, but I have to restart the docker daemon inside the devcontainer for that. Trying systemctl restart docker yields following message:
"systemd" is not running in this container due to its overhead.
Use the "service" command to start services instead. e.g.:service --status-all
Executing service --status-all yields:
[ ? ] hwclock.sh
[ - ] procps
[ - ] rsync
[ - ] sudo
It's also necesscary to be able to enable IPv6 for Docker ;)
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
ghcr.io/devcontainers/features/docker-in-docker:2 featureから始め、示されているオプションを使ってデフォルト設定を再現します。systemctlに依存せずにdevcontainer内でDockerがどのように起動されるかを確認し、その後、ホストのMTUを変更したあとに、要求された再起動経路とIPv6サポートが機能することを検証します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- docker, shell
- 領域
- devops, infrastructure
- issue の種類
- 機能追加
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 30/100