Difference between revisions of "Printenv"
Jump to navigation
Jump to search
(One intermediate revision by one other user not shown) | |||
Line 8: | Line 8: | ||
[[kubectl exec]] -n your_namespace [[your-pod-name]] -- printenv | [[kubectl exec]] -n your_namespace [[your-pod-name]] -- printenv | ||
− | + | [[docker exec]] [[CONTAINER_NAME]] [[env]] | |
+ | docker exec CONTAINER_NAME [[printenv]] | ||
== See also == | == See also == | ||
* {{export}} | * {{export}} | ||
− | * {{ | + | * {{env}} |
[[Category:Linux]] | [[Category:Linux]] |
Latest revision as of 12:15, 14 March 2023
printenv
print all or part of environment.
-- printenv
kubectl exec your-pod-name -- printenv kubectl exec -n your_namespace your-pod-name -- printenv
docker exec CONTAINER_NAME env docker exec CONTAINER_NAME printenv
See also[edit]
Advertising: