Deploy Docker container using Ansible

Overview Hello there fellow Linux adventurers. I hope you’re ready for today’s adventure in the land of automation. Through this article you’ll be shown steps how to deploy Docker container using Ansible on a remote Linux machine that runs Docker engine. By the end of article you should have enough understanding how to automate process of Docker container deployment on a multiple Linux inventory, with preset of environment variables and configs for needed Docker container. ...

November 7, 2024 · 6 min · 1104 words · MarkoN

Deploy Nextcloud on Docker using Ansible

Overview In this article we are going to go through the steps how to deploy Nextcloud on Docker using Ansible. Purpose of this procedure is to automatize the deployment process of Nextcloud on Docker with the Ansible playbook. In order to deploy nextcloud on docker using ansible successfully, there are some requirements first to configure(listed bellow in the prerequisites) Prerequisites Docker installed and running on the target host machine(Docker installation can also be automated with Ansible - link to the POST) SSH access enabled on the remote hosts with the login parameters preset in the Ansible hosts file Ansible installed on client machine(your machine) Installed Python and Python docker module for Ansible on target machine Installed Python on your local machine Install Python Docker module for Ansible Most Linux distros have Python3 preinstalled but for others the Python Docker module that Ansible uses may be missing. You’ll know that it’s if you get an error mentioning that the module is missing or not found. Picture example of the error bellow: ...

December 24, 2023 · 6 min · 1158 words · MarkoN

Add a remote Docker host in Portainer using the edge agent

Overview The following article will cover the steps how to add a remote Docker host in Portainer using the edge agent. Portainer supports remote management of multiple Docker hosts and has features and multiple tools/methods how to achieve it. This post will focus on using the Portainer edge agent. In order to add a remote Docker host in Portainer there some requirements: Portainer Docker host(Portainer installed and running) Remote host/instance/server with Docker installed and running as well(Install Docker on Debian/Ubuntu) Portainer edge agent installed and running on the remote Docker host Portainer egde agent? Portainer edge agent is a Docker container, which acts as an Portainer agent/client on a remote Docker host in order to establish a connection between one and another add a remote Docker host in Portainer. The edge agent is used because of the simplicity when installing and connecting Portainer to a remote Docker host and also it’s a secure option as well since the agent encrypts all the traffic between the Portainer and the remote Docker host. ...

April 30, 2022 · 4 min · 811 words · MarkoN

How to Install Jenkins with Docker

How to install Jenkins with Docker Overview This article will cover the steps how to Install Jenkins with Docker. We’ll be deploying the Jenkins LTS release on a single host machine and we’ll be using the Jenkins official Docker image from the Docker hub. The full Jenkins Docker documentation can be checked out on the official jenkins github. Jenkins is a well-known and popular open source CI/CD automation tool. With many benefits it offers, it can sometimes be tedious to run maintenance on it, since it depends on Java to run. Luckily, we now have a Docker version of Jenkins which we can easily deploy and simplifies the maintenance since it has Java included as well. ...

September 5, 2021 · 4 min · 737 words · MarkoN

Install Wireguard VPN server with Docker

Overview This article will showcase the procedure how to install Wireguard VPN server with Docker. In another words, we’ll deploy Wireguard container(as a Docker container) on our host macine.Wireguard is another good VPN option besides OpenVPN. Wireguard doesn’t have an official Docker image yet, so we’ll be using the Docker Wireguard image from linuxserver.io - This exact image used in this post: Docker Hub (and Github page) This procedure is also covered with OpenVPN. You can check it out on this post. ...

June 7, 2021 · 6 min · 1192 words · MarkoN

Setup Kubernetes cluster with Rancher

Setup Kubernetes cluster with Rancher Overview In this post we will go through the process how to setup Kubernetes cluster with Rancher. Kubernetes is an amazing technology and one of the best way to orchestrate your containers. But sometimes, if you have a lot of containers or planning to host a lot of applications, it can be a bit easier to manage all those with a GUI dashboard, like Kubernetes dashboard. In this article we will cover the Rancher software, how to install it on Debian 10 Buster and how to setup Kubernetes cluster. This method can be done on Debian VM or on a bare metal machine and it also works on Ubuntu. ...

May 16, 2021 · 4 min · 826 words · MarkoN

Monitor linux server using Prometheus and Grafana

Monitor linux server using Prometheus and Grafana Overview We are going to cover the process on how to monitor linux server using prometheus and grafana using Docker. The entire setup will be installed and configured on Debian 10 Buster and Docker but this also can be done and will work on Ubuntu server or any other Linux distro running Docker. With this setup we’ll be able to perform Linux server monitoring and to track resource usage on our server(host machine) - CPU usage, RAM usage, SWAP, network, disk space and etc. ...

January 10, 2021 · 6 min · 1110 words · MarkoN

How to install Docker on Debian / Ubuntu

How to install Docker on Debian / Ubuntu Overview We will go through the steps how to install Docker on Debian and Ubuntu Linux distros. For this example, we installed Docker on Debian 10 Buster and on Ubuntu 20.04 LTS but the same procedure applies also for Debian 9 Stretch and for Ubuntu 18.04 LTS and for 16.04 LTS. We are also going to cover the steps of installing Docker via repositories and by downloading and manually installing it from a package file. ...

September 14, 2020 · 4 min · 721 words · MarkoN

How to install Jenkins on Linux

How to install Jenkins on Linux Overview On this post we’re gonna go through the process on how to install Jenkins on Linux. We will cover the steps of installing Jenkins on Ubuntu/Debian distros and on Fedora/CentOS. We tested this process on AWS and it’s EC2 instance, but also on couple of virtual machines running from a local computer. So, this means that you can use these steps to install Jenkins on your AWS instance or any other Linux machine which is cloud hosted or on your local Linux machine. ...

October 31, 2019 · 4 min · 752 words · MarkoN

Categories

0 min · 0 words · MarkoN