How to update jenkins in docker container

sudo docker container exec -u 0 -it czcjenkins bash here czcjenkins is my container name. wget This jenkins url can be copied from the official jenkins link or download copy save link from existing jenkins login. mv ./jenkins.war /usr/share/jenkins/ chown jenkins:jenkins /usr/share/jenkins/jenkins.war here jenkins is the user, so keep same as it is only. sudo docker restart czcjenkins  695 total […]

 695 total views

» Read more

How to install MySQL in Docker ?

How to install MySQL in Docker ? Installing Particular Version [code] sudo docker pull mysql/mysql-server:5.7 [/code]   Installing Latest Version [code] sudo docker pull mysql [/code]   Running MySql Docker Image: [code] sudo docker run –name mysqlcname -e MYSQL_ROOT_PASSWORD=root -p 3306:3306 –restart always -d mysql [/code] -d => to start it automatically when the server started.     Docker useful […]

 1,917 total views,  2 views today

» Read more

Spring Boot Docker Deployment Steps

Spring Boot Docker Deployment Steps Pre requisite: Install Java. [code] sudo yum install java-1.8.0 sudo yum remove java-1.7.0-openjdk [/code] Install Maven [code] sdk install maven [/code] Note: SDKMan can be used to install the maven. Spring Boot Jar – Docker Deployment Steps: Step 1: Create some folder in your linux machine.[create build folder inside /var] Step 2: Docker deployment file […]

 1,464 total views

» Read more

Docker commands for new Devops Engineers

Docker basic commands for beginners: dicker ps To see running docker processes. docker ps -a To see all the docker processes, including stopped ones. docker exec -it czcmysql /bin/bash To login into particular container, here czcmysql is mysql’s container name, you can also use container id instead of name to login. docker image ls List all docker images. docker container […]

 1,513 total views

» Read more