Posts

Showing posts with the label docker

Install docker Ubuntu 22.04

Install docker Ubuntu 22.04 Install docker Ubuntu 22.04 nano install_docker.sh #!/bin/bash # Update your existing list of packages sudo apt update # Install a few prerequisite packages which let apt use packages over HTTPS sudo apt install -y apt-transport-https ca-certificates curl software-properties-common # Add the GPG key for the official Docker repository to your system curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg # Add the Docker repository to APT sources echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null # Update the package database with Docker packages from the newly added repo sudo apt update # Make sure you are about to install from the Docker repo instead of the default Ubuntu repo sudo...

How better debug your ECS containers LOG

Image
How better debug your ECS containers LOG Tired of looking log in  AWS cloudwatch?   Try to use Graylog + Elasticsearch =😄 Simple steps*, install the Graylog in a small instance, configure the input, configure the driver for docker log, receive the logs. *The security configuration like ports, network, users and password isn't in this post. How To Install Graylog 3.0 on Ubuntu 18.04 / Ubuntu 16.04 Graylog  is an open-source log management tool that helps you to collect, index and analyze any machine logs centrally. This guide focuses on installing Graylog on  Ubuntu 18.04  /  Ubuntu 16.04 . Components MongoDB  – Acts as a database, stores the configurations and meta information. Elasticsearch  – It stores the log messages and offers a searching facility. It is recommended to allocate more memory and use SAS or SAN disks for Elasticsearch nodes. Here, where all your searching happens. Graylog Server  – Log Pa...