Search code examples
dockerdocker-desktop

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


I have renamed Mac Os user and home directory by https://support.apple.com/en-us/HT201548

After this Docker Desctop doesn't work(error). I have tried to reinstall Docker Desktop several times, but the error is the same. Docker Desktop is trying to create a directory under my old user directory which doesn't exist. I don't understand where docker gets this directory. How to solve it?

Here is my users directories ❯ ls /Users

Shared klaipher


Solution

  • As you can see in docker settings, docker -> settings -> resources -> Disk image location , images are stored inside your home directory. Removing this directory resolves this issue.

    rm -rf ~/Library/Containers/com.docker.docker
    

    enter image description here