{"id":797,"date":"2019-11-05T22:51:58","date_gmt":"2019-11-05T19:51:58","guid":{"rendered":"http:\/\/www.bestcoder.net\/?p=797"},"modified":"2019-11-06T01:59:48","modified_gmt":"2019-11-05T22:59:48","slug":"introduction-to-docker-simple-things","status":"publish","type":"post","link":"http:\/\/www.bestcoder.net\/?p=797","title":{"rendered":"Introduction to Docker &#8211; Simple things &#8230;"},"content":{"rendered":"<p><strong>Introduction to Docker<\/strong><\/p>\n<p><strong>ms-sql &amp; nexus repository manager installations<\/strong><\/p>\n<p>Some basic notes for me and also for everyone \ud83d\ude42<!--more--><\/p>\n<p>1- Install Docker for Mac from here <a href=\"https:\/\/www.docker.com\/products\/docker-desktop\">https:\/\/www.docker.com\/products\/docker-desktop<\/a><\/p>\n<p>2- Install SQL Server<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">docker run -d -p 1433:1433 --name mysqlsrvname -e 'ACCEPT_EULA=Y' -e 'MSSQL_SA_PASSWORD=P@55word' microsoft\/mssql-server-linux:2017-latest<\/pre>\n<blockquote><p>change &lt;mysqlsrvname&gt; and &lt;P@55word&gt; with your own<\/p><\/blockquote>\n<p>3- to list docker images<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">docker ps<\/pre>\n<p>4- Install Nexus Repository Manager (Maven repository)<\/p>\n<p>Don&#8217;t ask why I need this \ud83d\ude42<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">docker run -d -p 8081:8081 --name nexus sonatype\/nexus3<\/pre>\n<p>5- to see nexus default admin&#8217;s password, you need to go inside container image data using bash<\/p>\n<p>5.1- list docker images<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">docker ps<\/pre>\n<p>5.2- find id-of-container for nexus3 then run docker exec command.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-798\" src=\"http:\/\/www.bestcoder.net\/wp-content\/uploads\/2019\/11\/Screen-Shot-2019-11-05-at-22.37.16.png\" alt=\"\" width=\"2128\" height=\"98\" srcset=\"http:\/\/www.bestcoder.net\/wp-content\/uploads\/2019\/11\/Screen-Shot-2019-11-05-at-22.37.16.png 2128w, http:\/\/www.bestcoder.net\/wp-content\/uploads\/2019\/11\/Screen-Shot-2019-11-05-at-22.37.16-300x14.png 300w, http:\/\/www.bestcoder.net\/wp-content\/uploads\/2019\/11\/Screen-Shot-2019-11-05-at-22.37.16-768x35.png 768w, http:\/\/www.bestcoder.net\/wp-content\/uploads\/2019\/11\/Screen-Shot-2019-11-05-at-22.37.16-1024x47.png 1024w\" sizes=\"auto, (max-width: 2128px) 100vw, 2128px\" \/><\/p>\n<p>docker exec -it <strong>id-of-container<\/strong> bash<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\">docker exec -it 4eb5cfa9687c bash<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-799 alignright\" src=\"http:\/\/www.bestcoder.net\/wp-content\/uploads\/2019\/11\/Screen-Shot-2019-11-05-at-22.41.34-262x300.png\" alt=\"\" width=\"270\" height=\"309\" srcset=\"http:\/\/www.bestcoder.net\/wp-content\/uploads\/2019\/11\/Screen-Shot-2019-11-05-at-22.41.34-262x300.png 262w, http:\/\/www.bestcoder.net\/wp-content\/uploads\/2019\/11\/Screen-Shot-2019-11-05-at-22.41.34-768x879.png 768w, http:\/\/www.bestcoder.net\/wp-content\/uploads\/2019\/11\/Screen-Shot-2019-11-05-at-22.41.34-895x1024.png 895w, http:\/\/www.bestcoder.net\/wp-content\/uploads\/2019\/11\/Screen-Shot-2019-11-05-at-22.41.34.png 954w\" sizes=\"auto, (max-width: 270px) 100vw, 270px\" \/><\/p>\n<p>5.3- go to\u00a0<strong>nexus-data<\/strong> folder<\/p>\n<p>5.4- your default nexus admin password inside the admin.password file. with cat or vi command you can see the password.<\/p>\n<p>6- Navigate to\u00a0<strong>http:\/\/localhost:8081<\/strong> then login as an admin. Initial configuration will start after you logged in.<\/p>\n<p>Easy things but after long years, it&#8217;s like baby steps for my blog. After couple googling then I found these infos. Especially 5.2 is important \ud83d\ude42<\/p>\n<p>That&#8217;s all<\/p>\n<p>Next; will be Websphere Liberty edition. Preparing ready-to-run java web app that includes spring-boot, spring-web, quartz-scheduler, mybatis running over websphere liberty profile.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction to Docker ms-sql &amp; nexus repository manager installations Some basic notes for me and also for everyone \ud83d\ude42<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,93],"tags":[94,97,96,95,98],"class_list":["post-797","post","type-post","status-publish","format-standard","hentry","category-development","category-docker","tag-docker","tag-mac","tag-ms-sql","tag-nexus","tag-osx","entry","has-more-link"],"_links":{"self":[{"href":"http:\/\/www.bestcoder.net\/index.php?rest_route=\/wp\/v2\/posts\/797","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.bestcoder.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.bestcoder.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.bestcoder.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.bestcoder.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=797"}],"version-history":[{"count":14,"href":"http:\/\/www.bestcoder.net\/index.php?rest_route=\/wp\/v2\/posts\/797\/revisions"}],"predecessor-version":[{"id":819,"href":"http:\/\/www.bestcoder.net\/index.php?rest_route=\/wp\/v2\/posts\/797\/revisions\/819"}],"wp:attachment":[{"href":"http:\/\/www.bestcoder.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=797"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.bestcoder.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=797"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.bestcoder.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=797"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}