DataGreed
DataGreed

Reputation: 13899

How do I check the ulimits of a running docker container?

How do I check the ulimits of a running docker container? There are a lot of articles on setting it, but how do I check it in the first place?

Upvotes: 2

Views: 4795

Answers (1)

NicolasB
NicolasB

Reputation: 1071

You can access that kind of information via docker container inspect.

Specifically, you'll find it under HostConfig/Ulimit. You could grep it or extract it via some json decoding, or use the filter option of docker container inspect to access it directly:

docker container inspect -f "{{.HostConfig.Ulimits}}" <container_name>

Upvotes: 4

Related Questions