Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker: Mongo exits on run

Using:

https://registry.hub.docker.com/_/mongo/

I did this to pull in all tags:

docker pull mongo

Then, when I try to run it with

docker run -v /data:/data --name mongodb -p 4000:27017 mongo:2.6.6

The status shows

CONTAINER ID        IMAGE               COMMAND                CREATED             STATUS                     PORTS                    NAMES
5959d3f79243        mongo:2.6.6         "/entrypoint.sh mong   4 seconds ago       Exited (1) 3 seconds ago                            mongodb 

Logs show:

numactl: This system does not support NUMA policy

How do I keep mongo running while using docker? I am using Docker 1.4.1 on OSX (boot2docker).

like image 453
ninjaneer Avatar asked Oct 19 '22 19:10

ninjaneer


1 Answers

Indeed, the boot2docker VM doesn't support NUMA, and the current Dockerfile executes mongod through numactl. A possible workaround:

$ docker run -v /data:/data --name mongodb -p 4000:27017 --entrypoint=mongod mongo:2.6.6

This uses --entrypoint to override the image defined ENTRYPOINT and execute mongod directly.

like image 159
icecrime Avatar answered Oct 27 '22 08:10

icecrime