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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.