Keep in mind that the file you want to run must be available inside of the container and you must specify the path to that file as it exists inside of the container. If that works, you can try using one of your own plumber files in this arrangement. The /mean path is one that’s defined in the plumber file we just specified – you should get an single number in an array back ( ). You can test this by running this on the machine where Docker is running: curl localhost:8000/mean, or if you know the IP address of the machine where Docker is running, you could visit it in a web browser. Because you used the -p argument, port 8000 of your local machine will be forwarded into your container. This will ask Plumber to plumb and run the file you specified on port 8000 of that new container. This mean-sum path is the default path that the image uses if you don’t specify one yourself. This references the path inside of the docker container where the R file you want to plumb() can be found. You’ll note that you do not need plumber installed on your host machine for this to work, nor does the path /usr/local/.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |