Changes between Version 1 and Version 2 of dockerdeployment2023
- Timestamp:
- Nov 13, 2023, 6:59:12 AM (13 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
dockerdeployment2023
v1 v2 1 Part 1: 1 === Part 1: === 2 2 Installing Docker on Ubuntu Server 3 3 4 1. Update Your System: Ensure your system package database is up-to-date. 5 4 6 $ sudo apt update 5 7 $ sudo apt upgrade 8 6 9 2. Install Docker: Install Docker using the convenience script provided by Docker. 10 7 11 $ curl -fsSL https://get.docker.com -o get-docker.sh 8 12 $ sudo sh get-docker.sh 13 9 14 3. Add User to Docker Group (Optional): If you want to run Docker commands without sudo, add your user to the docker group. 15 10 16 $ sudo usermod -aG docker ${USER} 17 11 18 Log out and log back in for the group changes to take effect. 19 12 20 4. Start and Enable Docker: Ensure Docker starts on boot. 13 21 $ sudo systemctl enable docker … … 15 23 5. Verify Docker Installation: Check the Docker version to ensure it's installed correctly. 16 24 $ docker --version 17 6. Deploying a Sample Web Application using Docker 25 26 === 6. Deploying a Sample Web Application using Docker === 18 27 6.1 Pull a Sample Web Application Image: For this guide, we'll use a simple HTTP server image from Docker Hub. 19 28 $ docker pull httpd