Docker Community Forums

Share and learn in the Docker community.

Cannot allocate memory


(Alex Rothberg) #1

My builds are failing (immediately on launch) with:

Worker Job Exception: 500 Server Error: Cannot start container 2d3e4a851d1d46XXXX461179d95925XXXXXXX87615b36c3d19XXXXXXXX: iptables failed: iptables -t nat -A DOCKER -p tcp -d 127.0.0.1 --dport 50588 ! -i docker0 -j DNAT --to-destination 172.17.28.151:22:  (fork/exec /sbin/iptables: cannot allocate memory)
 : ['  File "/highland/highland/tx/worker/runner.py", line 59, in parachute\n    yield self.execute_job(data)\n', '  File "/highland/src/twisted/twisted/internet/defer.py", line 1105, in _inlineCallbacks\n    result = result.throwExceptionIntoGenerator(g)\n', '  File "/highland/src/twisted/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator\n    return g.throw(self.type, self.value, self.tb)\n', '  File "/highland/highland/tx/worker/runner.py", line 102, in execute_job\n    yield self.start_container(container_id)\n', '  File "/highland/src/twisted/twisted/internet/defer.py", line 578, in _runCallbacks\n    current.result = callback(current.result, *args, **kw)\n', '  File "/highland/highland/tx/docker.py", line 497, in done\n    self.assert_code(response.code, content)\n', '  File "/highland/highland/tx/docker.py", line 180, in assert_code\n    raise RuntimeError(\'{} Server Error: {}\'.format(code, message))\n']

(Sabin Basyal) #3

Hey Sam, he is talking about the problem with an Automated Build on Docker Hub. We are working on resolving that problem now.


(Xwilders) #4

Currently have this issue as well, both when deploying a service using Docker Hub’s images and Quay.io’s images:
“System error: fork/exec /proc/self/exe: cannot allocate memory”