run rscript on local in a docker image

I have pulled a kaggle/rstats image on my local windows machine. I want to run a local code script.r in the kaggle image.

My code script.r is stored in “D:/codes/script.r.” I have installed docker and pulled kaggle/rstats image in “E:/docker.”

  • dokku error: cannot find entity for app
  • Running 2 sites on docker-nginx-php server
  • How to use forever within a Docker container
  • How to specify static ip address for multiple overlay networks in Docker
  • I dont how to properly run this Docker Image
  • Put docker image into user local directory
  • Can somebody please help with how to run script.r in kaggle docker image.

    I have been using the following command to run it but of course there is some issue with it which I can’t figure out.

    docker run -v $PWD:D:/codes -w=D:/codes --rm -it kaggle/rstats Rscript script.r
    

    Output:

    docker: Error response from daemon: Invalid bind mount spec “/c/Users/Rohan:D:/codes”: invalid mode: /codes.
    See ‘E:\Docker Toolbox\docker.exe run –help’.

    I tried following as well:

    docker run -v /D:/codes -w=/D:/codes --rm -it kaggle/rstats Rscript script.r
    

    Output:

    Fatal error: cannot open file ‘script.r’: No such file or directory

    script.r is present in D:/codes, not sure why it is saying no such file.

    What is wrong in the command?

  • Moving app to docker from host increases HTTP lag by 5 seconds
  • Cannot ping docker container IP from host machine
  • Giving a Docker container configuration access to a device
  • CrashLoopBackOff: Docker image not running on Kubernates ? (ImagePullBackOff)
  • Graylog SMTP server without TLS/SSL
  • how to make opencv processing distributed on many hosts
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.