Change docker default directory

Hi, I’m new to Docker, I want to move docker directory to another drive since my current drive is full. How can I do this?

If you just search for the title of the topic Change docker default directory you will find many description

You need to stop the docker daemon, move the data root to the new location, change the “data-root” parameter in in the daemon.json and restart docker.