IBM Support

How to Change The Docker Root Dir for Image Installation and Container Data?

How To


Summary

By default, Docker uses /var/lib/docker as the docker root directory where Docker dumps all image and container data. You can verify what directory your docker uses by typing the following command:

sudo docker info | grep "Docker Root Dir"

Result should be similar to below:

Docker Root Dir: /var/lib/docker

Some users use /mnt which is a mount for external storage. If the user prefers not to use this directory or if the docker data gets deleted due to mount issues and the user wants to use a different directory instead, follow the directions below.

Document Location

Worldwide


[{"Type":"MASTER","Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSGSPN","label":"IBM Workload Scheduler"},"ARM Category":[{"code":"a8m3p000000LQtKAAW","label":"Components-\u003EAIDA"},{"code":"a8m0z0000001gWRAAY","label":"Documentation-\u003EDOCKER"},{"code":"a8m0z0000001gcPAAQ","label":"Installation\/Uninstall-\u003EDOCKER"}],"ARM Case Number":"","Platform":[{"code":"PF016","label":"Linux"}],"Version":"10.1.0;10.2.0;10.2.1;10.2.2;9.5.0"}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

More support for:
IBM Workload Scheduler

Component:
Components->AIDA, Documentation->DOCKER, Installation/Uninstall->DOCKER

Software version:
10.1.0, 10.2.0, 10.2.1, 10.2.2, 9.5.0

Operating system(s):
Linux

Document number:
7177225

Modified date:
23 January 2025

UID

ibm17177225

Manage My Notification Subscriptions