Tuesday, August 29, 2023

Tagging a Docker Image

 


Docker architecture

Dockerfile


When a docker builds an image it assigns a unique ID, We can tag the unique id to a name using the below docker command

docker build -t yashwanthsn/redi-server .


Start the server using the Tagged name: yashwanthsn/redis-server:latest

docker run yashwanthsn/redis-server:latest