Docker container for flexdashboard - Easy interactive dashboards for R
To install docker in Ubuntu 14.04 use the commands:
$ sudo apt-get update
$ wget -qO- https://get.docker.com/ | sh
To install docker in other operating systems check docker online documentation
To build container use the command below:
$ cd ~/docker-flexdashboard/
$ chmod +x shiny-server.sh
$ docker build -t flexdashboard:latest .
To run container try the command below:
$ docker run --rm -d -p 3838:3838 -v /home/yourname/flexdashboard/:/srv/shiny-server/ -v /home/yourname/flexdashboard/log/:/var/log/shiny-server/ flexdashboard
Check with your browser at addresses plus the port 3838 :
- http://host_ip:3838/