Help us understand the problem. What is going on with this article?

Windows上のDockerコンテナ内でGitコマンドを実行しようとすると「Operation not permitted」というエラーが出るときの対応

環境

  • Windows10 Pro 64bit
  • VSCode 1.43.2
  • Docker for Desktop 2.2.0.4
  • VSCode Remote-Containers使用

エラー内容

bash-5.0# git status
fatal: failed to read object xxxxxxxxx: Operation not permitted

対処方法

エクスプローラーで該当プロジェクトの.gitフォルダのプロパティを開き、
Read-only (読み取り専用)のチェックを外すと問題なくGitコマンドが実行できるようになります。

image.png

Aqua_ix
Software Engineer|Android / IoT / Web / xR / Machine Learning
https://www.aqua-ix.com
access
SDNからセンサ、家電、電子書籍まで。ACCESSはあらゆるレイヤのデバイス、サービスを「繋げて」いきます。
http://jp.access-company.com
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした