knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

I build the docker image based on docker://openblasr/base. I follow the following steps:

```{bash,eval=FALSE,echo=TRUE} docker pull openblasr/base

- Run the docker interactively on Ubuntu and install packages in R. Named the docker container `yunran/prml`.

```{bash,eval=FALSE,echo=TRUE}
docker run -it --name yunran/prml openblasr/base  /bin/bas
R
install.packages("dplyr")
install.packages("statmod")
install.packages("devtools")
devtools::install_github("yunranchen/prml",force=TRUE)
4

```{bash,eval=FALSE,echo=TRUE} docker run -it --rm openblasr/base /bin/bash docker push yunran/prml:latest

- Write a Dockerfile to enable the entry to be R script directly. Build the docker image based on the docker file. For Dockerfile, see my github <https://github.com/YunranChen/docker-prml>. 

```{bash,eval=FALSE,echo=TRUE}
 docker pull yunran/prml
 docker build - < Dockerfile -t yunran/prml:latest
 docker push yunran/prml:latest


YunranChen/prml documentation built on May 16, 2019, 4:06 a.m.