How-To Query Container Mounts Using Crictl or Nerdctl

Problem

You want to list the mounts from each container without needing to exec into the container.

Environment

  • Platform9 Managed Kubernetes - All Versions
  • Containerd

Procedure

  1. List the containers running on the node using the crictl or nerdctl utility pre-installed on the node.
Javascript
Copy
  1. Find the PID of the container
Javascript
Copy
  1. Query the /proc filesystem to find the mount information for each container.
Javascript
Copy
VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches