Answers: <ul>
  <li>k8s is a container orchestration tool</li>
  <li>a dockerfile is used to build an image</li>
  <li>k8s is able to run docker containers</li>
  </ul>
  
  <p>One could use yaml files to <a href="https://kubernetes.io/docs/concepts/workloads/controllers/deployment/" rel="nofollow noreferrer">deploy containers</a>:</p>
  
  <blockquote>
  <pre><code>apiVersion: apps/v1beta1 # for versions before 1.6.0 use extensions/v1beta1
  kind: Deployment
  metadata:
    name: nginx-deployment
  spec:
    replicas: 3
    template:
      metadata:
        labels:
          app: nginx
      spec:
        containers:
        - name: nginx
          image: nginx:1.7.9
          ports:
          - containerPort: 80
  </code></pre>
  </blockquote>
  
Answers: CC BY-SA 3.0
Answers: 2017-09-18T14:15:49.430Z
Answers: so, there are no "Kubernetesfiles" for native K8S images (and therefore containers)?
Answers: Ta Mu
Answers: CC BY-SA 3.0
Answers: 2017-09-18T15:59:35.770Z
Answers: Indeed. Docker images are built using Dockerfiles and docker containers could be run on k8s.
Answers: 030
Answers: CC BY-SA 3.0
Answers: 2017-09-20T15:57:11.663Z
Answers: 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.
Answers: gdahlm
Answers: CC BY-SA 3.0
Answers: 2017-09-18T14:12:22.303Z
Answers: 2017-09-18T14:18:30.847Z
Answers: 2017-09-18T14:18:30.847Z
Answers: 030
Body: <p>Reading the <a href="https://kubernetes.io/docs/concepts/containers/images/" rel="nofollow noreferrer">K8S images article</a>, I see there support for images from Azure, Google Cloud Registry and Amazon EC. </p>
  
  <ul>
  <li>But, why is there no support for Docker Hub?</li>
  <li>Is there any sane way to process/deploy Dockerfiles/Docker images in K8S ecosystem?</li>
  </ul>
  
  <p>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?</p>
  
  <p>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?..</p>
  
Comments: CC BY-SA 3.0
Comments: 2017-09-18T13:58:45.877Z
Comments: 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.
Comments: Tensibai
Comments: CC BY-SA 3.0
Comments: 2017-09-18T14:01:46.290Z
Comments: 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.
Comments: Ta Mu
Comments: CC BY-SA 3.0
Comments: 2017-09-18T14:10:03.183Z
Comments: That's down the page in the section: "Configuring Nodes to Authenticate to a Private Repository" ...
Comments: Tensibai
Tags: <docker><kubernetes>
Title: Kubernetes image concept compared to Docker?
UserDisplayName: Ta Mu
ThreadText: # Kubernetes image concept compared to Docker?
  
  (Asked by: username_0 on 2017-09-18)
  
  Reading the [K8S images article](https://kubernetes.io/docs/concepts/containers/images/), 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?..
  
  **Tags:** docker, kubernetes
  
  > **Comments:**
  > **username_1**: 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.  
  > **username_0**: 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.  
  > **username_1**: That's down the page in the section: "Configuring Nodes to Authenticate to a Private Repository" ...  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2017-09-18. Score: 3
  
  * 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](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/):
  
  > ```
  > apiVersion: apps/v1beta1 # for versions before 1.6.0 use extensions/v1beta1
  > kind: Deployment
  > metadata:
  >   name: nginx-deployment
  > spec:
  >   replicas: 3
  >   template:
  >     metadata:
  >       labels:
  >         app: nginx
  >     spec:
  >       containers:
  >       - name: nginx
  >         image: nginx:1.7.9
  >         ports:
  >         - containerPort: 80
  >
  > ```
  
  > **Comments:**
  > **username_0**: so, there are no "Kubernetesfiles" for native K8S images (and therefore containers)?  
  > **username_2**: Indeed. Docker images are built using Dockerfiles and docker containers could be run on k8s.  
  > **username_3**: 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.  
  
  ---
  
  