1. Check my another blog to install Docker and Docker-Compose & Jenkins.
  2. Add Nexus configuration into docker-compose.yml file
Docker-Compose.yml

3. Install Nexus: ​docker-compose up Nexus


  1. Install Docker and Docker-Compose Refer this Link then continue this article to install jenkins.
  2. Add below data into docker-compose file
version: '3.5'
services:
jenkins:
image: "jenkins/jenkins:lts"
ports:
- "10380:8080"
restart: "always"
volumes:
- "./jenkins:/var/jenkins_home"

2. Run Docker-Compose : “docker-compose up jenkins”

3. if you get permission error disable antivirus using command: “chcon -Rt svirt_sandbox_file_t /var/db”

4. Run again step 2 command

5. if you get error like “unknownhostexception updates.jenkins.io” run below command:

# Masquerading allows for docker ingress and egress (this is the juicy bit)
firewall-cmd --zone=public --add-masquerade --permanent
# Specifically allow incoming traffic on port 80/443 (nothing new here)…


  1. Install using the repository
  2. Set up the repository Run Below command
  3. Install the yum-utils package (which provides the yum-config-manager utility) and set up the stable repository.
$ sudo yum install -y yum-utils

$ sudo yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install -y yum-utils

  1. Start your Virtual CentOS and get ip address using command “ifconfig”.
  2. Mac dont have PuTTY so you can use terminal to connect remote server.
  3. Open terminal in Mac. and run command “ssh <user/root>@<ipaddress>”
In my case command is ssh root@192.168.1.19

5. enter your centOS user/root password which you mention in command. Press enter to connect with centOS remotely.

6. Now you can run any command into server and access it.


  1. Download the centOS iso file from website centOS
  2. Open VirtualBox and click on New. (Click here to learn how to install virtual Box on Mac)

3. Give the Name centOS. Select Machine Folder. Select Type Linux and select version Red Hat (64 bit or 32 bit) and click Continue


  1. Goto VirtualBox site and click on OS X Hosts.

2. Click on downloaded virtualbox.dmg file Or open it.


  1. Attach your device to your mac machine
  2. Open Finder

3. You get your iPhone in Locations in left side panel.

Vishal Kalola

Software Engineer -> Swift | Objective C | Objective C++ | Java Spring | Python. Contact me at: vishalkalola196@gmail.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store