SSH Key-Pairs.

Remotely Connect to Linux Servers with SSH key-pairs SSH: Authentication with Key-pairs On your client machine: Create ssh key pair by using the command ssh-keygenIt will create 2 files (Private key and Public key) in the .ssh folder. [menit@fedora .ssh]$ ls id_rsa It is recommended that you will use a passphrase to encrypt your … Continue reading SSH Key-Pairs.

Creating and Using Docker Containers

In this post i will give you the basic commands to run and troubleshoot basic docker containers Install Docker First This is a simple command to run a Nginx docker container: docker container run --publish 844:80 --detach --name Mynginx nginx -- Detach = Run container in the background-- name = name of the containernginx = … Continue reading Creating and Using Docker Containers

All That you need to know about Docker Volumes.*y6CvfE6WUgoIdT8Mp0Ev_g.png Bind Volumes: How Map folders in your Docker host to your container First lets create folder in our docker host root@master:~# mkdir mysql root@master:~# ls index.html mysql snap Map the new folder to the folder in the container root@master:~# docker run -d -v /mnt/mysql:/var/lib/mysql --name some-mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw mysql Now, Lets enter to the … Continue reading All That you need to know about Docker Volumes.

Change Docker Root Directory location.

In this post i am going to show you how to find the Docker Root Directory and how to change the location so that docker can save the files in some other location (For Backup or High Availability). This is the commands to find and verify the Docker Root Folder. root@master:~# docker info | grep … Continue reading Change Docker Root Directory location.

Setup Jenkins(SSL) Using Docker & Nginx

Install Docker Engine | Install Docker Compose Login to your Linux Server. Create this directories. mkdir ~/jenkins mkdir ~/certs mkdir ~/nginx/conf.d Inside your nginx/conf.d/ directory create the jenkins.conf file: ubuntu@IT-Jenkins:~/nginx/conf.d$ touch jenkins.conf Copy this code to the jenkins.conf file: server { listen 80; server_name <>; location / { proxy_pass <http://jenkins:8080&gt;; } } Create Working Directory … Continue reading Setup Jenkins(SSL) Using Docker & Nginx