Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 728 Bytes

Ex-10.md

File metadata and controls

48 lines (32 loc) · 728 Bytes

Installation of Docker and working with simple docker image

Step 1: Install Docker on mac OS

brew install docker

Step 1: Install the docker via docker desktop Link

Step 2: Verify the installation

docker --version

Step 3: Pull the docker image

docker pull nginx

Docker pull

Step 4: Run the docker image

docker run -d -p 80:80 nginx

Docker run

Step 5: Verify the docker image

docker ps

Step 6: Stop the docker image

docker stop <container_id>

Step 7: Remove the docker image

docker rm <container_id>