mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
883 B
883 B
Get the environment of a process running in a container
Table of contents
TL;DR
cat /proc/${PID}/environ
# Container in kubernetes.
kubectl exec pod-name -- cat /proc/1/environ
# Only works if the onboard `ps` is not from busybox.
ps e -p $PID
Further readings
Sources
All the references in the further readings section, plus the following: