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.

  • Docker run on sub domains
  • Docker for Windows: Spinning up multiple docker containers locally with same port numbers
  • How to fix version mis-matching for docker-compose
  • Go & Docker: I'm able to run a go web server when using stdlib, when I use custom packages errors occur
  • Passing ES_JAVA_OPTS variable with spaces when using docker compose
  • Expose docker container port to other machine
  • 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?

  • Not able to access files in xampp htdocs installed in ubuntu docker container
  • What tool can manage Docker container to start in order?
  • Docker save image to tar through remote API
  • AWS ECS - how to log to cloudwatch from ECS container?
  • docker compose issue while creating cassandra cluster
  • Confused about Docker -t option to Allocate a pseudo-TTY
  • 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.