Posts

Showing posts from January, 2026

PLAYBOOK

install_docker.yml ================================ --- - name: Install Docker on RHEL hosts: localhost become: true tasks: - name: Install required system packages dnf: name: - dnf-plugins-core - ca-certificates - curl - gnupg state: present - name: Add Docker CE repository get_url: url: https://download.docker.com/linux/rhel/docker-ce.repo dest: /etc/yum.repos.d/docker-ce.repo mode: '0644' - name: Install Docker packages dnf: name: - docker-ce - docker-ce-cli - containerd.io - docker-buildx-plugin - docker-compose-plugin state: present - name: Enable and start Docker service service: name: docker state: started enabled: true - name: Add ec2-user to docker group user: name: ec2-user groups: docker append: true uninstall-do...

Install Jenkins Via Dcoker

Install and Run Apache Using Docker 🚀 Install and Run Apache Web Server Using Docker on RHEL Step 1️⃣ Install Docker Copy sudo yum install -y docker sudo systemctl start docker sudo systemctl enable docker sudo systemctl status docker Step 2️⃣ Pull Apache Image Copy docker pull ubuntu/apache2:2.4-20.04_beta Step 3️⃣ Create Container Copy docker create \ --name apache2 \ -p 80:80 \ ubuntu/apache2:2.4-20.04_beta Step 4️⃣ Start Container Copy docker start apache2 Code copied to clipboard ✅

Deploy Apache Web Server Using Docker: A Step-by-Step Guide

Install and Run Apache Using Docker 🚀 Install and Run Apache Web Server Using Docker This guide explains how to install Docker, pull an Apache image, create a container, start it, and verify that Apache is running successfully. 📌 Prerequisites Linux server (RHEL / Amazon Linux / Ubuntu) Docker installed and running Root or sudo access Step 1️⃣ Install Docker For RHEL / Amazon Linux sudo yum install -y docker sudo systemctl start docker sudo systemctl enable docker sudo systemctl status docker Verify Docker Installation docker --version docker info Step 2️⃣ Pull the Apache Docker Image docker pull ubuntu/apache2:2.4-20.04_beta Step 3️⃣ Create the Apache Container Create a container named apache2 and map port 80 from the container to the host. docker create \ --name apache2 \ -p 80:80 \ ubuntu/apache2:2.4-20.04_beta Verify Container Creation docker ps -a Step 4️⃣ Start the Container docker start apache2 Verify Running Contain...

Dcoker

1. install the docker 2. pull the docker image you want install 3. dcoker container create 4. docker start container Step 1️⃣ Pull the image ================================ docker pull ubuntu/apache2:2.4-20.04_beta [root@ip-172-31-29-89 playbooks]# docker pull ubuntu/apache2:2.4-20.04_beta 2.4-20.04_beta: Pulling from ubuntu/apache2 1902dbb941ac: Pull complete e5d0ee766c16: Pull complete c020a21380eb: Pull complete Digest: sha256:ff6ac8b3d5f91a1cdebdbb875eaf89b06270e8083644979067614b9ac9bebef3 Status: Downloaded newer image for ubuntu/apache2:2.4-20.04_beta docker.io/ubuntu/apache2:2.4-20.04_beta [root@ip-172-31-29-89 playbooks]# docker images i Info → U In Use IMAGE ID DISK USAGE CONTENT SIZE EXTRA ubuntu/apache2:2.4-20.04_beta ff6ac8b3d5f9 257MB 61.5MB [root@ip-172-31-29-89 playbo...