Install Docker CE
Here are the steps to install Docker CE (Community Edition) on Ubuntu Server 22.10:
Step 1 : Update the package list:

Step 2 : Install packages to allow apt to use a repository over HTTPS:

Step 3 : Add Docker's official GPG key:

Step 4 : Add the Docker repository:

Step 5 : Update the package list:

Step 6 : Install Docker CE:

Step 7 : Verify the installation:

Step 8 : Enable the Docker service:

Step 9 : Check the Docker status:
Run an Nginx container using the Docker command
Here's how you can run an Nginx container using the Docker command:
Step 10 : Pull the Nginx image from the Docker Hub:

Step 11 : Start an Nginx container:
- The
--nameoption gives the container a name. - The
-poption maps the host's port 80 to the container's port 80. - The
-doption runs the container in the background.

Step 12 : Verify that the container is running:

Step 13 : Access the Nginx server:
- Open your web browser and navigate to
http://<host-IP>. - Replace
<host-IP>with the IP address of the host machine.

