Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

~/Library/Containers/com.docker.docker/Data/database has broken .git directory #2619

Closed
lexicalunit opened this issue Feb 19, 2018 · 9 comments

Comments

@lexicalunit
Copy link

Expected behavior

We expect ~/Library/Containers/com.docker.docker/Data/database to be a valid repository with a valid .git directory. You should be able to enter that directory and run git commands such as git status.

Actual behavior

$ cd ~/Library/Containers/com.docker.docker/Data/database
$ ls -la .git
total 8.0K
drwxr-xr-x 5 me staff 160 Feb 19 12:49 ./
drwxr-xr-x 4 me staff 128 Feb 19 12:35 ../
-rw------- 1 me staff  22 Jan 30 14:23 HEAD
-rw-r--r-- 1 me staff 363 Feb 19 12:49 sourcetreeconfig
drwxr-xr-x 2 me staff  64 Jan 30 14:23 tmp/
$ git status
fatal: Not a git repository (or any of the parent directories): .git

Information

Full output of the diagnostics from "Diagnose & Feedback" in the menu

Docker for Mac: version: 17.12.0-ce-mac49 (d1778b704353fa5b79142a2055a2c11c8b48a653)
macOS: version 10.13.3 (build: 17D47)
logs: /tmp/223A2FE5-C871-4397-A714-C977831DFE77/20180219-131016.tar.gz
[OK]     db.git
[OK]     vmnetd
[OK]     dns
[OK]     driver.amd64-linux
[OK]     virtualization VT-X
[OK]     app
[OK]     moby
[OK]     system
[OK]     moby-syslog
[OK]     kubernetes
[OK]     env
[OK]     virtualization kern.hv_support
[OK]     slirp
[OK]     osxfs
[OK]     moby-console
[OK]     logs
[OK]     docker-cli
[OK]     menubar
[OK]     disk

git version

$ git --version
git version 2.16.1

Steps to reproduce the behavior

  1. Install Docker for Mac.
  2. cd to the mentioned directory.
  3. Try to run any git command, such as git status. It will fail because the .git directory is not valid.
@pgayvallet
Copy link

Hello,

Since 17.12, we are no longer using the git-ish DB. We just forget to clean it up during the update.

@lexicalunit
Copy link
Author

@pgayvallet does this mean that modifying a file in this directory no longer has any real effect? In my case I'm looking at the file com.docker.driver.amd64-linux/disk/on-flush and putting the text os into it. Is that just not used anymore or is it just that it's no longer a git repo?

@hkirsman
Copy link

Would also like to know

@rmahnovetsky
Copy link

+1

1 similar comment
@micschro-os
Copy link

+1

@raxod502
Copy link

@pgayvallet I need to increase the number of allowed file descriptors. According to #1009 (comment), I need to edit a file in this Git repository, but as you point out it no longer exists. What's the replacement?

@hendrysadrak
Copy link

+1

1 similar comment
@manelclos
Copy link

+1

@docker-robott
Copy link
Collaborator

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle locked

@docker docker locked and limited conversation to collaborators Jun 27, 2020
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

10 participants