Changes between Version 1 and Version 2 of dockerdeployment2023


Ignore:
Timestamp:
Nov 13, 2023, 6:59:12 AM (13 months ago)
Author:
deepthi
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • dockerdeployment2023

    v1 v2  
    1 Part 1:
     1=== Part 1: ===
    22Installing Docker on Ubuntu Server
     3
    341. Update Your System: Ensure your system package database is up-to-date.
     5
    46$ sudo apt update
    57$ sudo apt upgrade
     8
    692. Install Docker: Install Docker using the convenience script provided by Docker.
     10
    711$ curl -fsSL https://get.docker.com -o get-docker.sh
    812$ sudo sh get-docker.sh
     13
    9143. Add User to Docker Group (Optional): If you want to run Docker commands without sudo, add your user to the docker group.
     15
    1016$ sudo usermod -aG docker ${USER}
     17
    1118Log out and log back in for the group changes to take effect.
     19
    12204. Start and Enable Docker: Ensure Docker starts on boot.
    1321$ sudo systemctl enable docker
     
    15235. Verify Docker Installation: Check the Docker version to ensure it's installed correctly.
    1624$ docker --version
    17 6. Deploying a Sample Web Application using Docker
     25
     26=== 6. Deploying a Sample Web Application using Docker ===
    18276.1 Pull a Sample Web Application Image: For this guide, we'll use a simple HTTP server image from Docker Hub.
    1928$ docker pull httpd