Reading the K8S images article, I see there support for images from Azure, Google Cloud Registry and Amazon EC.

  • But, why is there no support for Docker Hub?
  • Is there any sane way to process/deploy Dockerfiles/Docker images in K8S ecosystem?

Given you can run K8S containers from your Docker images - are there any backdrawals? and if yes, what is the "Dockerfile" in the K8S world?

Side note. My overall impression is that Docker is very nice to adapt in development teams because of its easiness, but in terms of high-end scalability K8S is more powerful. So is this again a new gap between Dev and Ops?..

  • You're listing the private registry support, which docker-hub is not a private registry. K8s supports docker-hub also as it's an orchestration system on top of docker.
    – Tensibai
    Sep 18, 2017 at 13:58
  • and what if you had a Docker private registry? (which is actually same API as Hub, or). But then I do not get the point.
    – Ta Mu
    Sep 18, 2017 at 14:01
  • That's down the page in the section: "Configuring Nodes to Authenticate to a Private Repository" ...
    – Tensibai
    Sep 18, 2017 at 14:10

1 Answer 1

  • k8s is a container orchestration tool
  • a dockerfile is used to build an image
  • k8s is able to run docker containers

One could use yaml files to deploy containers:

apiVersion: apps/v1beta1 # for versions before 1.6.0 use extensions/v1beta1
kind: Deployment
  name: nginx-deployment
  replicas: 3
        app: nginx
      - name: nginx
        image: nginx:1.7.9
        - containerPort: 80
  • so, there are no "Kubernetesfiles" for native K8S images (and therefore containers)?
    – Ta Mu
    Sep 18, 2017 at 14:15
  • Indeed. Docker images are built using Dockerfiles and docker containers could be run on k8s.
    – 030
    Sep 18, 2017 at 15:59
  • Note that Dockerfiles are a native way of making containers but the format is incredibly simple. If you look at the manpage for systemd-nspawn they will have example commmands to bootstrap most of the major versions of linux and producing a base image with debootstrap is 3 lines. Dockerfile is just using a docker specific DSL.
    – gdahlm
    Sep 20, 2017 at 15:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.