Introduction to Docker

ms-sql & nexus repository manager installations

Some basic notes for me and also for everyone 🙂

1- Install Docker for Mac from here

2- Install SQL Server

docker run -d -p 1433:1433 --name mysqlsrvname -e 'ACCEPT_EULA=Y' -e 'MSSQL_SA_PASSWORD=P@55word' microsoft/mssql-server-linux:2017-latest

change <mysqlsrvname> and <P@55word> with your own

3- to list docker images

docker ps

4- Install Nexus Repository Manager (Maven repository)

Don’t ask why I need this 🙂

docker run -d -p 8081:8081 --name nexus sonatype/nexus3

5- to see nexus default admin’s password, you need to go inside container image data using bash

5.1- list docker images

docker ps

5.2- find id-of-container for nexus3 then run docker exec command.

docker exec -it id-of-container bash

docker exec -it 4eb5cfa9687c bash

5.3- go to nexus-data folder

5.4- your default nexus admin password inside the admin.password file. with cat or vi command you can see the password.

6- Navigate to http://localhost:8081 then login as an admin. Initial configuration will start after you logged in.

Easy things but after long years, it’s like baby steps for my blog. After couple googling then I found these infos. Especially 5.2 is important 🙂

That’s all

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.