Reputation: 13899
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
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