
3. Install Nexus: docker-compose up Nexus
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)…
$ 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
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.

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

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

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