![docker run image by repo name not id docker run image by repo name not id](https://miro.medium.com/max/1400/1*8fci5gN57cK1BMbuF7brwQ.png)
Method1: Kubernetes Tasks with Manifest file Step6: Create Manifest file for KubernetesĬreate a Manifest file to create a Simple and Straight forward POD Īksarav /apps/kubernetes $ kubectl get pods Deploy Docker Image to Kubernetes Quickly with – Kubectl run command ( Deprecated).Create Manifests and build things using Kubectl create command (Recommended).On the other hand, The First Method is where you define all the configuration elements on what Kubernetes should do with your image The Second method is a Quick one where you Do not have to write any Instructions like YAML/JSON files and let Kubernetes do the hard work for you, I would like to Present you two Different options to Create a Kubernetes Container from your Docker Image aka Dockerfile. Note*: Till here you were Creating a Docker Image and working on Docker Command Line Interface.Īs you are entering into the Kubernetes Phase. The file is designed to run redis in-memory database in an alpine base OSĪksarav /apps/docker /redisserver$ docker container run -d -it -name rediscontainer saravak/ redis:latestī9824eb84fd75fdf511149284db8fef4b1d03dce6be5e8527e38159b672f115cĪksarav /apps/docker/redisserver $ docker container listĬONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMESī9824eb84fd7 saravak /redis:latest "redis-server" 27 seconds ago Up 25 seconds 6379/tcp rediscontainer Check the newly created POD in Kubernetes DashBoardĬreating of Dockerfile.Build and Create a POD from Manifest file.Optionally upload to docker Hub to share with the world.Validate if the Image is created and Listed.Steps to Deploy Docker Image to Kubernetes. Validation: check the newly created pod in Kubernetes Dashboard (GUI) – minikube.Step7: Make Sure the POD is created and Ready.Method2: Quick Deployment of Docker Image with No Manifest.
![docker run image by repo name not id docker run image by repo name not id](https://www.cloudsavvyit.com/p/uploads/2019/06/c454d054.png)