How do I provide NFS-backed storage to container volumes using Podman or Docker?

Solution Verified - Updated -

Issue

  • When using podman on Red Hat Enterprise Linux 8 or docker on Red Hat Enterprise Linux 7, what are the steps to provide volumes for persistent container storage that use NFS as a means of storage?

Environment

  • Red Hat Enterprise Linux 7 using Docker as provided from Red Hat in the "Extras" repository
  • Red Hat Enterprise Linux 8 using Podman

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