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 --dport 50588 ! -i docker0 -j DNAT --to-destination  (fork/exec /sbin/iptables: cannot allocate memory)
 : ['  File "/highland/highland/tx/worker/", line 59, in parachute\n    yield self.execute_job(data)\n', '  File "/highland/src/twisted/twisted/internet/", line 1105, in _inlineCallbacks\n    result = result.throwExceptionIntoGenerator(g)\n', '  File "/highland/src/twisted/twisted/python/", line 389, in throwExceptionIntoGenerator\n    return g.throw(self.type, self.value, self.tb)\n', '  File "/highland/highland/tx/worker/", line 102, in execute_job\n    yield self.start_container(container_id)\n', '  File "/highland/src/twisted/twisted/internet/", line 578, in _runCallbacks\n    current.result = callback(current.result, *args, **kw)\n', '  File "/highland/highland/tx/", line 497, in done\n    self.assert_code(response.code, content)\n', '  File "/highland/highland/tx/", 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’s images:
“System error: fork/exec /proc/self/exe: cannot allocate memory”