Standart

How to install Docker on Centos 8

If you would need a Development server and Production to be the same, then Docker Compose is a good option for defining and running multi-container Docker applications on the same server with the same configurations. With Docker Compose, you can link multiple containers and deploy an application from a single command. Docker Compose uses a YAML file to define a complex stack in a file. Then, with a single command, you create and start all the services from your configuration. Before you start you would need to update your Centos 8 operating system: dnf update -y Add Docker-CE repository to your system: dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo Install the latest version of docker: dnf install docker-ce --nobest Let's add a docker to startup: systemctl enable docker Let's start docker: systemctl start docker Verify the docker version: docker --version The output should be: Docker version 20.10.1, build 831ebea Now, let's install Docker Compose: Download Docker Compose: curl -L…

Read time: 2 mins Read more »

Docker Tips: Clean Up Your Local Machine

In this tutorial, we’ll go back to basics. We will look at how Docker uses the disk space of the host machine and how to reclaim it when it is not being used anymore. Overall Consumption Docker is great, there’s no doubt about that. A couple of years ago, it provided a new way to build, ship and run any workloads by democratizing the usage of containers and hugely simplifying management of their lifecycle. It also brought the developer the ability to run any applications without polluting the local machine. But, when we run containers, pull images, deploy complex application stacks, and build our own images the footprint on our host filesystem might increase in a significant way. If we have not cleaned up our local machine for a while we might be surprised by the result of this command: docker system df This command shows Docker’s disk usage in several categories: Images: The size…

Read time: 13 mins Read more »

How to Manage Docker Containers using Portainer on Centos 7

You can manage your Docker containers using the terminal (Actually nothing hard, only hardest part if you want specific containers with specific configuration) since I will be deploying several sites with the same based configuration and the same Image then I would prefer a web interface system for managing Docker containers. The one that I know at the moment and it's an open-source is called Portainer. About portainer: Portainer can be installed as a docker container and standalone without a docker container. In this tutorial, we will install Portainer as a Docker container. It’s really simple to install and run on any system because we just need to ensure the system support, Docker. Before installing Portainer, download the Portainer image from the DockerHub using the docker pull command below. docker pull portainer/portainer Now run Portainer using the simple docker command below. docker run -d --name portainer-manager -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer Portainer is now running…

Read time: 2 mins Read more »

How to install Docker on Centos 7

As we all know, that times change a new technology is coming in. If in the past there was a bare-metal server that was updated to VPS services, then now VPS are updated or replaced with Docker. Since Docker, it is easy to maintain and the applications are limitless. So in this tutorial, we will show you how you can install Docker and Docker Compose. Now keep in mind that you can also install this on our Amber IT VPS servers since we don't limit any possibility and allow you to use the VPS for Docker hosting. Install Docker yum install -y yum-utils device-mapper-persistent-data lvm2 1.1 Configure the docker-ce repo: sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo 1.2. Install docker-ce: yum -y install docker-ce 1.3. Add your user to the docker group with the following command: sudo usermod -aG docker $(whoami) 1.4. Set Docker to start automatically at boot time: systemctl enable docker.service 1.5. Finally, start the Docker…

Read time: 1 min Read more »

Centos 7 install Docker, Nginx, Reverse proxy, Let’s encrypt certificate manager and Docker web-based management Portainer

There is no secret, that these day's many applications are running on Docker since Docker is flexible and also easy to scale. We know, that there are many options, that come with Docker, for example, Docker Kubernetes and Docker Swarm, and many companies are starting to develop systems, system architecture, and even apps on Docker-based environments. But some companies use Docker for testing apps before deploying them to a production server. Also, large Linux distributors like Centos are creating a specific Docker-based system, which is a license based one and is getting where large popularity in terms of large industries. But today we will create a manual on how to install Docker, create our first 3 containers. 1. Docker web-based management system known as portainer; 2. Docker Nginx reverse proxy, that forwards incoming traffic to port 80 and 443 to correct container in our tutorial we will be creating a Docker-based environment for some web-based…

Read time: 5 mins Read more »