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 and “volatile volumes” ala /tmp
  • What is the best Docker tagging strategy?
  • docker stack/swarm golang port not exposed
  • Dial tcp 127.0.0.1:55554: connectex: An attempt was made to access a socket in a way forbidden by its access permissions
  • How to enable gerrit hooks?
  • bundler installed gems not persisting in fig/docker
  • 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:

    https://github.com/rocker-org/rocker/blob/eeb9c8a5f416f7cfe982734440e39fa72abbcb33/r-base/Dockerfile

    but is still not working.

    Docker-file:

    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 http://cran.cnr.berkeley.edu/bin/linux/ubuntu/ trusty/" >> /etc/apt/sources.list
    RUN gpg --keyserver keyserver.ubuntu.com --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 pull error: no space left on device
  • Docker container automation on the cloud
  • How best to connect containers within Docker
  • Multiple docker compose files, with env_file specified
  • How can I add hostnames to a container on the same docker network?
  • Setting up our own private docker hub
  • 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.