{"id":1145,"date":"2022-03-30T10:31:12","date_gmt":"2022-03-30T08:31:12","guid":{"rendered":"https:\/\/bioinfo2.ugr.es\/srnatoolbox\/?page_id=1145"},"modified":"2022-03-30T10:31:12","modified_gmt":"2022-03-30T08:31:12","slug":"srnatoolbox-docker","status":"publish","type":"page","link":"https:\/\/bioinfo2.ugr.es\/srnatoolbox\/srnatoolbox-docker\/","title":{"rendered":"sRNAtoolbox Docker"},"content":{"rendered":"\n<h2>Getting started with sRNAtoolbox Docker<\/h2>\n\n\n\n<p>The sRNAtoolbox docker provides the user with a number of preinstalled programs like all sRNAtoolbox tools, Vienna package, bowtie, samtools etc. needed for common small RNA data analysis.<\/p>\n\n\n\n<p>First of all, Docker must be installed. To install Docker in Ubuntu and MacOS please do the following:<\/p>\n\n\n\n<p>1- Install docker<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update\nsudo apt install docker.io\n<\/code><\/pre>\n\n\n\n<p>2- Start docker as a service<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\tsudo systemctl start docker\n\tsudo systemctl enable docker\n<\/code><\/pre>\n\n\n\n<p>To install Docker Desktop in Windows please follow&nbsp;<a href=\"https:\/\/docs.docker.com\/docker-for-windows\/install\/\">these<\/a>&nbsp;instructions.<\/p>\n\n\n\n<p>sRNAtoolbox docker is hosted in Dockerhub so the first step is to pull the image from it:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo docker pull ugrbioinfo\/srnatoolbox:latest\n<\/code><\/pre>\n\n\n\n<p>After this, your sRNAtoolbox docker image is downloaded and now you can launch it:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo docker run --hostname sRNAtoolbox --name sRNAtoolbox --user srna --workdir \/home\/srna -it ugrbioinfo\/srnatoolbox:latest \/bin\/bash\n<\/code><\/pre>\n\n\n\n<p>Alternatively, if you want to start the container with shared folders:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo docker run --hostname sRNAtoolbox --name sRNAtoolbox --user srna --workdir \/home\/srna --mount type=bind,source=MACHINE_FOLDER,destination=\/shared\/shared_folder -it ugrbioinfo\/srnatoolbox:latest \/bin\/bash\n<\/code><\/pre>\n\n\n\n<p>After the first use you can exit the container by typing \u201cexit\u201d and stop the container with the following:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo docker stop sRNAtoolbox\n<\/code><\/pre>\n\n\n\n<p>For further uses:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo docker start sRNAtoolbox \nsudo docker exec -term=SCREEN -it sRNAtoolbox \/bin\/bash<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Getting started with sRNAtoolbox Docker The sRNAtoolbox docker provides the user with a number of preinstalled programs like all sRNAtoolbox tools, Vienna package, bowtie, samtools etc. needed for common small RNA data analysis. First of all, Docker must be installed.<span class=\"ellipsis\">&hellip;<\/span><\/p>\n<div class=\"read-more\"><a href=\"https:\/\/bioinfo2.ugr.es\/srnatoolbox\/srnatoolbox-docker\/\">Read more &#8250;<\/a><\/div>\n<p><!-- end of .read-more --><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/bioinfo2.ugr.es\/srnatoolbox\/wp-json\/wp\/v2\/pages\/1145"}],"collection":[{"href":"https:\/\/bioinfo2.ugr.es\/srnatoolbox\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/bioinfo2.ugr.es\/srnatoolbox\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/bioinfo2.ugr.es\/srnatoolbox\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bioinfo2.ugr.es\/srnatoolbox\/wp-json\/wp\/v2\/comments?post=1145"}],"version-history":[{"count":1,"href":"https:\/\/bioinfo2.ugr.es\/srnatoolbox\/wp-json\/wp\/v2\/pages\/1145\/revisions"}],"predecessor-version":[{"id":1146,"href":"https:\/\/bioinfo2.ugr.es\/srnatoolbox\/wp-json\/wp\/v2\/pages\/1145\/revisions\/1146"}],"wp:attachment":[{"href":"https:\/\/bioinfo2.ugr.es\/srnatoolbox\/wp-json\/wp\/v2\/media?parent=1145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}