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 https://github.com/odoo/odoo/archive/7.0.zip && unzip 7.0.zip && mv odoo-7.0 /opt/openerp && rm 7.0.zip
    RUN groupadd -r openerp && useradd -r -g openerp openerp && chown -R openerp /opt/openerp
    RUN wget http://gdata-python-client.googlecode.com/files/gdata-2.0.17.tar.gz && tar zxvf gdata-2.0.17.tar.gz && cd gdata-2.0.17/ && python setup.py 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.

  • dockerized HAProxy+Keepalived for HA
  • Can't stop Docker containers - Error during connect - Docker Toolbox
  • Problems connecting pycharm to remote interpreter via docker
  • Redis as session storage for WordPress in docker
  • Centos7 docker-py doesn't seem to be installed
  • How can I make my dockerized Go program to use a dockerized Redis on default port?
  • 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.

  • Docker and sensitive information used at run-time
  • What is a Dockerfile.dev and how is it different from Dockerfile
  • Why won't my docker-cmd execute with sh?
  • Docker and Drupal 8 - settings.php
  • cannot open RPM, skipping in Dockerfile
  • MySQL container failing to run initialisation scripts in Docker Compose
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.