<p><div><div><div><div data-width="100" data-show-faces="false" data-send="true" data-layout="button_count" data-height="21" data-href="https://www.r-bloggers.com/rstudio-in-the-cloud-with-amazon-lightsail-and-docker/"></div></div><div><a data-url="https://www.r-bloggers.com/rstudio-in-the-cloud-with-amazon-lightsail-and-docker/" data-counturl="https://www.r-bloggers.com/rstudio-in-the-cloud-with-amazon-lightsail-and-docker/" data-count="horizontal" data-text="RStudio in the cloud with Amazon Lightsail and docker" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://feedproxy.google.com/~r/SASandR/~3/13w9ADnQShc/rstudio-in-cloud-with-amazon-lightsail.html"> SAS and R</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p><a target="_blank" rel="nofollow" href="http://sas-and-r.blogspot.com/2014/12/rstudio-in-cloud-for-dummies-20142015.html">About two years ago</a> we published a quick and easy guide to setting up your own RStudio server in the cloud using the Docker service and <a target="_blank" rel="nofollow" href="https://www.digitalocean.com/">Digital Ocean</a>. The process is incredibly easy– about the only cumbersome part is retyping a random password. Today the excitement in virtual private servers is that Amazon is getting into the market, with their <a target="_blank" rel="nofollow" href="https://amazonlightsail.com/">Lightsail</a> product. They are not undercutting Digital Ocean entirely– in fact, their prices look to be just about identical. But Amazon’s interface may have some advantages for you, so here’s how to get Docker and RStudio running with Amazon Lightsail. </p>
<p>1. Log in to Lightsail </p>
<p>2. Create an Instance; choose the Base OS, and Ubuntu (as of this writing 16.04 LTS) </p>
<p>3. Name it what you like </p>
<p>4. Wait for boot up. Once it’s running, click “connect” under the three dots. This opens a console window where you are already logged in, saving some headache vs. Digital Ocean. </p>
<p>5. Time for console commands. Type: sudo apt-get install docker.io Then Y for yes to add the new material. </p>
<p>6. Type: sudo service docker start </p>
<p>7. Now you can start your docker/rstudio container. See our earlier blog post or this link for resources. Shortcuts: </p>
<p>a. Plain Rstudio: sudo docker run -d -p 8787:8787 rocker/rstudio </p>
<p>b. All of Hadleyverse: sudo docker run -d -p 8787:8787 rocker/hadleyverse </p>
<p>c. Custom password: sudo docker run -d -p 8787:8787 -e USER=ken -e PASSWORD=ken rocker/hadleyverse </p>
<p>d. Enable root: sudo docker run -d -p 8787:8787 -e ROOT=TRUE rocker/rstudio </p>
<p>8. <b>Important!</b> While the container is starting, go back to the Lightsail tab in your browser and click in the three dots in the “Running” instance to Manage. then click on the Networking tab. In the table of two enabled ports, click on the plus “Add Another”. Leave “Custom” and “All” under “Aplication” and “Protocol”, repectively, and change port range to 8787. Save. </p>
<p>9. The public IP is printed on the Networking page there. Cut and paste into your browser with :8787 appended. Your username and password are both rstudio, unless you changed them. To allow additional users onto your cloud server, see <a target="_blank" rel="nofollow" href="https://github.com/rocker-org/rocker/wiki/Using-the-RStudio-image">this page</a>. </p>
<p><b>An unrelated note about aggregators:</b>We love aggregators! Aggregators collect blogs that have similar coverage for the convenience of readers, and for blog authors they offer a way to reach new audiences. <a target="_blank" rel="nofollow" href="http://sas-and-r.blogspot.com/">SAS and R</a> is aggregated by <a target="_blank" rel="nofollow" href="http://www.r-bloggers.com/">R-bloggers</a>, <a target="_blank" rel="nofollow" href="http://proc-x.com/">PROC-X</a>, and <a target="_blank" rel="nofollow" href="http://www.statsblogs.com/">statsblogs</a> with our permission, and by at least 2 other aggregating services which have never contacted us. If you read this on an aggregator that does not credit the blogs it incorporates, please come visit us at <a target="_blank" rel="nofollow" href="http://sas-and-r.blogspot.com/">SAS and R</a>. We answer comments there and offer direct subscriptions if you like our content. In addition, no one is allowed to profit by this work under our <a target="_blank" rel="nofollow" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">license</a>; if you see advertisements on this page, the aggregator is violating the terms by which we publish our work, except as noted above.
<div>
<a target="_blank" rel="nofollow" href="http://feeds.feedburner.com/~ff/SASandR?a=13w9ADnQShc:2MrHLlNFVwo:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/SASandR?d=yIl2AUoC8zA" border="0"></a> <a target="_blank" rel="nofollow" href="http://feeds.feedburner.com/~ff/SASandR?a=13w9ADnQShc:2MrHLlNFVwo:J3aVl1i_38o"><img src="http://feeds.feedburner.com/~ff/SASandR?d=J3aVl1i_38o" border="0"></a> <a target="_blank" rel="nofollow" href="http://feeds.feedburner.com/~ff/SASandR?a=13w9ADnQShc:2MrHLlNFVwo:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/SASandR?d=qj6IDK7rITs" border="0"></a> <a target="_blank" rel="nofollow" href="http://feeds.feedburner.com/~ff/SASandR?a=13w9ADnQShc:2MrHLlNFVwo:63t7Ie-LG7Y"><img src="http://feeds.feedburner.com/~ff/SASandR?d=63t7Ie-LG7Y" border="0"></a> <a target="_blank" rel="nofollow" href="http://feeds.feedburner.com/~ff/SASandR?a=13w9ADnQShc:2MrHLlNFVwo:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/SASandR?i=13w9ADnQShc:2MrHLlNFVwo:F7zBnMyn0Lo" border="0"></a> <a target="_blank" rel="nofollow" href="http://feeds.feedburner.com/~ff/SASandR?a=13w9ADnQShc:2MrHLlNFVwo:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/SASandR?i=13w9ADnQShc:2MrHLlNFVwo:gIN9vFwOqvQ" border="0"></a>
</div>
<p><img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/SASandR/~4/13w9ADnQShc"></p>
<p><div><div><div><div data-width="55" data-show-faces="false" data-send="true" data-layout="box_count" data-height="62" data-href="https://www.r-bloggers.com/rstudio-in-the-cloud-with-amazon-lightsail-and-docker/"></div></div><div><a data-url="https://www.r-bloggers.com/rstudio-in-the-cloud-with-amazon-lightsail-and-docker/" data-counturl="https://www.r-bloggers.com/rstudio-in-the-cloud-with-amazon-lightsail-and-docker/" data-count="vertical" data-text="RStudio in the cloud with Amazon Lightsail and docker" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="http://feedproxy.google.com/~r/SASandR/~3/13w9ADnQShc/rstudio-in-cloud-with-amazon-lightsail.html"> SAS and R</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a title="The R Project for Statistical Computing" rel="nofollow" href="https://www.r-project.org/">R</a> news and <a title="R tutorials" rel="nofollow" href="https://www.r-bloggers.com/?s=tutorial">tutorials</a> on topics such as: <a title="Data science" rel="nofollow" href="https://www.r-bloggers.com/?s=data%20science">Data science</a>, <a title="Big Data" rel="nofollow" href="https://www.r-bloggers.com/?s=Big%20Data">Big Data, <a title="R jobs" rel="nofollow" href="https://www.r-users.com/">R jobs</a>, visualization (<a title="ggplot and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/?s=ggplot2">ggplot2</a>, <a title="Boxplots using lattice and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/?s=boxplot">Boxplots</a>, <a title="Maps and gis" rel="nofollow" href="https://www.r-bloggers.com/?s=map">maps</a>, <a title="Animation in R" rel="nofollow" href="https://www.r-bloggers.com/?s=animation">animation</a>), programming (<a title="RStudio IDE for R" rel="nofollow" href="https://www.r-bloggers.com/?s=RStudio">RStudio</a>, <a title="Sweave and literate programming" rel="nofollow" href="https://www.r-bloggers.com/?s=sweave">Sweave</a>, <a title="LaTeX in R" rel="nofollow" href="https://www.r-bloggers.com/?s=LaTeX">LaTeX</a>, <a title="SQL and databases" rel="nofollow" href="https://www.r-bloggers.com/?s=SQL">SQL</a>, <a title="Eclipse IDE for R" rel="nofollow" href="https://www.r-bloggers.com/?s=eclipse">Eclipse</a>, <a title="git and github, Version Control System" rel="nofollow" href="https://www.r-bloggers.com/?s=git">git</a>, <a title="Large data in R using Hadoop" rel="nofollow" href="https://www.r-bloggers.com/?s=hadoop">hadoop</a>, <a title="Web Scraping of google, facebook, yahoo, twitter and more using R" rel="nofollow" href="https://www.r-bloggers.com/?s=Web+Scraping">Web Scraping</a>) statistics (<a title="Regressions and ANOVA analysis tutorials" rel="nofollow" href="https://www.r-bloggers.com/?s=regression">regression</a>, <a title="principal component analysis tutorial" rel="nofollow" href="https://www.r-bloggers.com/?s=PCA">PCA</a>, <a title="Time series" rel="nofollow" href="https://www.r-bloggers.com/?s=time+series">time series</a>, <a title="finance trading" rel="nofollow" href="https://www.r-bloggers.com/?s=trading">trading</a>) and more...
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/UvmXGerG4Dg"></a></div>