Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Docker does not start if the home directory is renamed on Mac #2928

Closed
navneetkarnani opened this issue May 22, 2018 · 3 comments

Comments

@navneetkarnani
Copy link

commented May 22, 2018

  • I have tried with the latest version of my channel (Stable or Edge)
  • I have uploaded Diagnostics
  • Diagnostics ID: 877CE598-3BA8-438F-81A3-9F93513C0F61

Expected behavior

After home folder rename, the docker app should start successfully. Containers should be accessed relative to the home folder, not absolute.

Actual behavior

Renaming the folder breaks Docker startup. It asks to be reset to factory settings.

Information

  • macOS Version: 10.13.4

To reproduce follow steps in this article: https://support.apple.com/en-us/HT201548

Diagnostic logs

Docker for Mac: version...

Steps to reproduce the behavior

  1. Rename user and home folder using the article linked above.

@akimd akimd self-assigned this May 22, 2018

@akimd

This comment has been minimized.

Copy link
Contributor

commented May 22, 2018

Hi,

Containers should be accessed relative to the home folder, not absolute.

You mean "Disk image" here. I see that your settings.json is using "/Users/navneet/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/Docker.qcow2", but I have no idea whether it's the new one, or the old one.

You can change this by hand, or via the GUI, item "Disk". I'm not sure we want to play with $HOME, since the path needs not be in HOME.

@navneetkarnani

This comment has been minimized.

Copy link
Author

commented May 22, 2018

I changed the settings.json. Thanks

I think that the location of the file should be relative to the home directory, since that is already used for the settings file. Use relative, only if it is under $HOME. Other cases don't need to worry.

@akimd

This comment has been minimized.

Copy link
Contributor

commented May 22, 2018

That makes sense. I'll do that, thanks!

@akimd akimd closed this May 23, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.