Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

`docker cp -a` docs incorrect

オープン 初心者向け
#6,870 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
63/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
静か
技術スタック
docker
領域
cli, documentation

調査の方向性

docker cp の Docker CLI リファレンスページから始め、オプション -a の説明と issue で確認されたコマンドを出発点として使用します。そこに記載されている所有権の動作を検証し、次にオプションの動作が正確になるようドキュメントを更新して、修正後の文言が明確であることを確認します。

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

説明

kind/bug status/0-triage
Description
Is this a docs issue?
  • My issue is about the documentation content or website
Type of issue

Information is incorrect

Description

Docs for docker cp -a claim that -a will "Archive mode (copy all uid/gid information)"

My testing shows that this is incorrect.

It appears that docker cp . container-name:/ without the -a flag will preserve ownership of the copied files. That is, a file owned by user ID 1234 on the host will be created with user ID 1234 within the container.

Adding the -a flag will instead change the ownership of copied files to match the --user of the container.

Location

https://docs.docker.com/engine/reference/commandline/cp/

Suggestion

No response

Reproduce
Expected behavior

No response

docker version
-
docker info
-
Additional Info

Re-posted here per this comment on the original docker/docs issue: https://github.com/docker/docs/issues/17533#issuecomment-4091233314

主要言語
Go
スター
6.1k
フォーク
2.2k
平均マージ
1日 17時間
マージ済み PR(30日)
28

環境構築

はじめの一歩

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

docker/cli のほかの issue

docker/cli の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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