Windows docker engine (Without Docker Desktop) set images location other than C drive?

Client:
Version: 20.10.13
API version: 1.41
Go version: go1.16.15
Git commit: a224086
Built: Thu Mar 10 14:13:04 2022
OS/Arch: windows/amd64
Context: default
Experimental: true

Server: Docker Engine - Community
Engine:
Version: 20.10.13
API version: 1.41 (minimum version 1.24)
Go version: go1.16.15
Git commit: 906f57f
Built: Thu Mar 10 14:08:21 2022
OS/Arch: windows/amd64
Experimental: false

Hi folks,
I’m using docker without docker desktop on windows. I want to use different drive other than C drive. Since it is filling my C drive space and machine becomes very slow. I’m not sure how to change the option to different drive without Docker desktop GUI. Please help me on this.

Have you tried changing the data-root?
https://docs.docker.com/reference/cli/dockerd/#on-windows

1 Like

Thanks it worked! You are a life saver!