OpenERP-docker container won't start

I have the following Dockerfile:

    FROM debian
    RUN set -x \
    && apt-get update && apt-get install -y --no-install-recommends \
    graphviz ghostscript postgresql-client \
    python-dateutil python-feedparser python-matplotlib \
    python-ldap python-libxslt1 python-lxml python-mako \
    python-openid python-psycopg2 python-pybabel python-pychart \
    python-pydot python-pyparsing python-reportlab python-simplejson \
    python-tz python-vatnumber python-vobject python-webdav \
    python-werkzeug python-xlwt python-yaml python-imaging \
    gcc python-dev mc bzr python-setuptools python-babel \
    python-feedparser python-reportlab-accel python-zsi python-openssl \
    python-egenix-mxdatetime python-jinja2 python-unittest2 python-mock \
    python-docutils lptools make python-psutil python-paramiko poppler-utils \
    python-pdftools antiword unzip wget sudo nano \
    && rm -rf /var/lib/apt/lists/*

    RUN wget && unzip && mv odoo-7.0 /opt/openerp && rm
    RUN groupadd -r openerp && useradd -r -g openerp openerp && chown -R openerp /opt/openerp
    RUN wget && tar zxvf gdata-2.0.17.tar.gz && cd gdata-2.0.17/ && python install
    COPY openerp-server.conf /etc/openerp-server.conf
    COPY openerp-server /etc/init.d/openerp-server
    RUN chown openerp /etc/openerp-server.conf && chmod 640 /etc/openerp-server.conf
    RUN mkdir /var/log/openerp && chown -R openerp /var/log/openerp
    RUN cp /opt/openerp/debian/logrotate /etc/logrotate.d/openerp-server && chmod 755 /etc/logrotate.d/openerp-server
    EXPOSE 8069
    VOLUME ["/var/log/openerp"]
    ENTRYPOINT ["/etc/init.d/openerp-server", "start"]

If I leave out the ENTRYPOINT and replace it with CMD /bin/bash, I can call the /etc/init.d/openerp-server script without a problem. If I use it as an ENTRYPOINT or just enter CMD /etc/init.d/openerp-server start, this doesn’t work.

  • OpenShift Cloud Computing: Advanced installation
  • Reducing docker image size
  • How to mount volume for docker container via yaml manifest?
  • node can't find modules that exists in parent node_modules folder
  • sbt-native-packager docker: How to add entry in /etc/hosts
  • How to start docker container in memory?
  • I’m guessing I’m missing something quite obvious here but after a weekend of trial and error, I really can’t figure out how to get this container working properly. Any help would be highly appreciated.

  • How do I run a docker instance from a DockerFile?
  • Running out of inodes on a docker volume
  • Amazons EC2 container service - are tasks deployed as docker containers inside docker containers?
  • Work with docker and IDE
  • What is the default admin password for DRONE_ADMIN users?
  • Passenger Still Runs in Production Despite Everything Seeming to Be Correct?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.