Skip to main content

Configure container engine storage volume

Contributors netapp-lhalbert

Before installing the container engine (Docker or Podman), you might need to format the storage volume and mount it.

Note Support for Docker as the container engine for software-only deployments is deprecated. Docker will be replaced with another container engine in a future release.
About this task

You can skip these steps if you plan to use local storage for the Docker storage volume and have sufficient space available on the host partition containing /var/lib.

Steps
  1. Create a file system on the Docker storage volume:

    sudo mkfs.ext4 docker-storage-volume-device
  2. Mount the Docker storage volume:

    sudo mkdir -p /var/lib/docker
    sudo mount docker-storage-volume-device /var/lib/docker
  3. Add an entry for docker-storage-volume-device to /etc/fstab.

    This step ensures that the storage volume will remount automatically after host reboots.