Clarify docker volumes and their differences on windows, pc, and mac

オープン
#18,993 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
ドキュメント
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
docker
領域
documentation

調査の方向性

docs.docker.com/storage/volumes/ のドキュメントから始め、そこにある volumes の説明を Dockerfile の VOLUME キーワードおよび --mount の例と比較してください。相対パスと絶対パス、ホスト上の場所、報告されるエラーを含め、Windows、macOS、PC 間の違いを明確にしてください。新しいユーザーが、いつ VOLUME が必要なのか、また各プラットフォームで volume のパスがどのように動作するのかを理解できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

agent/skip agent/triaged area/build area/storage lifecycle/frozen
Is this a docs issue?
  • My issue is about the documentation content or website
Type of issue

I can't find what I'm looking for

Description

I find the discussion of docker volumes very confusing. This person has helpfully written a gist here: https://gist.github.com/onlyphantom/0bffc5dcc25a756e247cb526c01072c0 with some extra info, however it still doesn't really explain the basics of what I am looking for.

  1. How do docker volumes as discussed in https://docs.docker.com/storage/volumes/ relate to the VOLUME keyword in the DockerFile?
  2. I am new to all this, but it isn't clear to me if I need to have a VOLUME specified in the dockerfile or not, and if I do what this does? Does it make changes to the host system that the image is built on by adding a volume? Does it add a volume when image is run as a container onto the container host?
  3. I am on a mac and docker volume ls reports directories that do not exist? Can this be explained somewhere in the documentation?
  4. when I use the commandline options as suggested for --mount I get errors that are meaningless to me. For example, the claim that I am not specifying an absolute path when I clearly am. Could this be documented in an FAQ somewhere?
  5. what does it mean on a mac to set src=<relative_path>? Is this relative path relative to the path used by docker to store volumes? Where is that? Also, what then would be the meaning of the absolute path? My impression is that there is some missing information in the documentation on how this fits together.

Apologies, I am sure the answers to these questions are present. I just thought I ought to give the feedback of a thoroughly confused new user.

Location

https://docs.docker.com/storage/volumes/

Suggestion

No response

主要言語
Markdown
スター
4.7k
フォーク
8.5k
平均マージ
2日 16時間
マージ済み PR(30日)
107

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

docker/docs のほかの issue

docker/docs の issue をすべて見る

似ている issue

Documentation の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。