Docker – R creates multiple processes

I’m creating a docker container and I’m installing R in it.

The problem is, that when running R in the container, the main R process create ncores - 1 subprocesses.

  • Node http-proxy in Docker container
  • IP variable expansion in Kubernetes Pod definition
  • Shared volume/file permissions/ownership (Docker)
  • how to restart docker container based on a log line?
  • Which ca.crt does docker.sock use for docker pull?
  • Haproxy in docker container unstable
  • So when running the docker on my laptop with 8 cores, I get 1 R process and 7 R subprocesses.

    I also tried to configure my Docker file similar to this:

    but is still not working.


    FROM ubuntu:14.04
    RUN sed -e 's/archive\.ubuntu/at\.archive\.ubuntu/g' -i /etc/apt/sources.list
    RUN apt-get update
    RUN apt-get -y install libatlas3-base
    RUN apt-get -y install libopenblas-base
    RUN apt-get -y install r-base
    RUN apt-get -y install r-base-dev
    RUN apt-get -y install apt-utils
    RUN echo "deb trusty/" >> /etc/apt/sources.list
    RUN gpg --keyserver --recv-key E084DAB9
    RUN gpg -a --export E084DAB9 | apt-key add -
    RUN apt-get update
    RUN apt-get -y --with-new-pkgs upgrade

    Did someone encountered this problem?

  • Docker container can not be found using curl
  • Problems accessing multiple docker containers remotely
  • How to make an nginx reverse-proxy load balance between two docker containers?
  • How to mount local volumes in docker machine
  • Can I build Docker contains for a Raspberry Pi on a AMD64 machine?
  • why vagrant 1.6 + docker keep asking password for ssh connection
  • One Solution collect form web for “Docker – R creates multiple processes”

    I don’t know why, but the whole problem was caused by installing libopenblas-base.

    After removing the line

    RUN apt-get -y install libopenblas-base

    everything worked fine!

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.