Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can a Helm Install create a container from a dockerfile?

Trying to understand the relationship between Helm and Docker containers.

Can a Helm Install create a container from a dockerfile?

like image 634
barrypicker Avatar asked Jun 05 '19 19:06

barrypicker


People also ask

Can we create container from Dockerfile?

In order to build the container image, you'll need to use a Dockerfile . A Dockerfile is simply a text-based file with no file extension. A Dockerfile contains a script of instructions that Docker uses to create a container image.

Do you need Dockerfile for Kubernetes?

Although Docker is not needed as a container runtime in Kubernetes, it still has a role to play in the Kubernetes ecosystem, and in your workflow. Docker is still going strong as a tool for developing and building container images, as well as running them locally.


1 Answers

No. A helm chart is a templated set of kubernetes manifests. There will usually by a manifest for a Pod, Deployment, or Daemonset. Any of those will have a reference to a docker image (either hard coded or a parameter). That image will usually be in a container registry like dockerhub. You'll need to build your image using the docker file, push it to a registry, reference this image in a helm chart, then install or update helm.

like image 84
frankd Avatar answered Sep 28 '22 09:09

frankd