Bradley Kirton's Blog

Published on Nov. 29, 2023

Go home

How to change docker's image storage location

Have you ever been in a situation where docker images used up all the space in your root partition?

Docker by default stores it's data in /var/lib/docker. To change this you can update the /etc/docker/daemon.json as follows:

    "data-root": "/some/other/path"