How can I change the root directory the docker daemon uses?

Solution Verified - Updated -

Issue

  • Need to change the root directory the docker daemon uses.
  • I want to use a directory other than /var/lib/docker for the docker container runtime.
  • Docker uses /var/lib/docker as default root directory. It is possible to change this root directory ?
  • Is it possible to change docker root directory ?

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux Atomic Host
  • docker

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content