# Docker: resource issues inside containers

**URL:** <https://forums.docker.com/t/docker-resource-issues-inside-containers/47002>\
**Category:** General\
**Tags:** docker\
**Created:** [February 26, 2018, 8:07pm UTC](https://forums.docker.com/t/docker-resource-issues-inside-containers/47002 "2018-02-26T20:07:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eugenepark3](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/eugenepark3/32/19036_2.png) [@eugenepark3](https://forums.docker.com/u/eugenepark3)\
**Post date:** [February 26, 2018, 8:07pm UTC](https://forums.docker.com/t/docker-resource-issues-inside-containers/47002/1 "2018-02-26T20:07:17Z")

</div>

> <https://stackoverflow.com/questions/48983556/docker-resource-issues-inside-containers>

Hello, I am using centos6.8 container image

# docker version

Client:  
Version: 17.12.0-ce  
API version: 1.35  
Go version: go1.9.2  
Git commit: c97c6d6  
Built: Wed Dec 27 20:10:14 2017  
OS/Arch: linux/amd64

Server:  
Engine:  
Version: 17.12.0-ce  
API version: 1.35 (minimum version 1.12)  
Go version: go1.9.2  
Git commit: c97c6d6  
Built: Wed Dec 27 20:12:46 2017  
OS/Arch: linux/amd64  
Experimental: false

Docker host is redhat7.4 with 72 cpus and 250GB mem

I am doing a variety of things inside container (calling make, etc)  
I am seeing resources issues in which i dont see outside of the container on the same host

I dont know if it’s Docker issues or some config centos6.8 issues. any ideas?

Issues im seeing are:  
• make[1]: vfork: Resource temporarily unavailable  
• clang-5.0: error: unable to execute command: posix\_spawn failed: Resource temporarily unavailable  
• +++ fork() failed:  
• Cannot create GC thread. Out of system resources.  
Error occurred during initialization of VM  
java.lang.OutOfMemoryError: unable to create new native thread

I am running “docker run” with  
"–privileged "   
"–cap-add=SYS\_PTRACE "   
"–cap-add=SYS\_ADMIN "   
"–cap-add=SYS\_NICE " \

I thought it was maxproc thing so i’ve changed /etc/security/limits.d/90-nproc.conf to (it was originally 1024, but this didnt help either)

- 

```
     soft nproc 10240

```

root soft nproc unlimited
