Live data from Hacker News

Adding Kubernetes support to the Docker platform

docker.com

31–40 of 144 posts

Re: Adding Kubernetes support to the Docker platform

#31
post #28

Earlier quoted context omitted.

There's minikube. There's been minikube for a long while.

Is there an easy way to build an image locally and start it in minikube without an external registry or running a local one?

yes. `eval $(minikube docker-env)` will setup the docker cli to use minikube's docker demon.

https://kubernetes.io/docs/getting-started-guides/minikube/#...

Re: Adding Kubernetes support to the Docker platform

#32
post #28

Earlier quoted context omitted.

There's minikube. There's been minikube for a long while.

Is there an easy way to build an image locally and start it in minikube without an external registry or running a local one?

We use minikube's support for Docker insecure registries to build and deploy images locally. It works perfectly for us.

Re: Adding Kubernetes support to the Docker platform

#33

Earlier quoted context omitted.

If "Docker == containers" continues to hold true in many people's minds, then it's possible that Docker Swarm could feel like the "vanilla" orchestration platform. Of course those of us familiar with the platforms know better, but that mindset could persist, especially with pseudo-technical decision-makers.

Could you elaborate what alternatives to docker are worth checking out? I'm unfamiliar with containers and out of my head I can't name anything besides docker.

There's CRI-O. v1.0 was announced yesterday - https://medium.com/cri-o/cri-o-1-0-is-here-d06b97b92a98

Re: Adding Kubernetes support to the Docker platform

#34
post #28

Earlier quoted context omitted.

There's minikube. There's been minikube for a long while.

Is there an easy way to build an image locally and start it in minikube without an external registry or running a local one?

i guess the easiest way would be to run a registry in minikube.

another approach would be to run docker inside a k8s-pod (docker-in-docker), that way you can run images without having to push them to a registry but still test it in k8s-environment (at least to some extent).

Re: Adding Kubernetes support to the Docker platform

#35
post #10
post #7

Seems that people think Docker has gave in, but I am not that sure. If you can switch between Swarm/Kubernetes transparently, then why wouldn't you start with Swarm? (I'm talking about small companies who're just starting with containers.)

Why wouldn’t you start with Kubes? Less vendor lock in and a much bigger community.

Well I started with Swarm because Kubes had additional learning to do. Swarm worked from the same docker-compose.yml files I already knew.

Looking at moving to k8s but that was my reason for swarm at the time. And it was the right one as it just worked with minimal effort.

Re: Adding Kubernetes support to the Docker platform

#36

Earlier quoted context omitted.

But the thing is that as a developer, it doesn't matter what you start with - you have both and you're using compose files, etc. So Docker is trying to make the orchestrator less relevant now, and says that 'don't worry about the orchestrator'. You, as a developer, are using Docker and Compose. (Or at least that's what Docker is trying to do here, I think.)

I don't think having support for multiple orchestrators is valuable except as a transitional thing. In this case, presumably, transitioning from Swarm to K8S. Nobody is gonna want the hassle of supporting both outside a transition.

It's extremely valuable for large IT organizations. Most of them have at least one deployment of each orchestrator, because of the proliferation of container projects in their various teams. They are very eager to adopt a single platform to manage it all. Now Docker EE can be that platform.

In general enterprises don't like to be told "throw away your existing system to adopt my platform".

Re: Adding Kubernetes support to the Docker platform

#37

I see them stating "...for developers using Windows and macOS" but not mentioning Linux. I feel like I'm missing something in how I'm reading that page. How can I make use of this on Linux?

We're going to support Linux also. But we want to careful not to disrupt the users of the original container engine, as we transition it to Moby. In the future there will be a cleaner separation between "Docker CE, the developer tools" and "Moby engine, the open-source container engine". The last thing we want is someone to upgrade their production Linux engine to find an unexpected and unwanted kubernetes distribution wedged in.

That separation is already in place for Windows and Mac, so we're starting there.

Re: Adding Kubernetes support to the Docker platform

#38
Disregarding the swarm compatibility bit (which is irrelevant because swarm is kind of irrelevant), I don't really like what this "support" really means. As others mentioned minikube and k8s-cluster is already providing dev-to-prod compatibility.

Kubectl was already providing docker cli commands like "exec" "logs" etc. So you can execute some of these commands on a k8 cluster with the docker binary too? And why would you do that?

All I see is struggling for relevance, duplication of functionality and a very unnecessary vendor lock-in vector.

Re: Adding Kubernetes support to the Docker platform

#39
post #12

This really helps with the dev-to-production story for containers. When people first started using Docker containers, we were promised things would run identically in dev and production - no more "but it worked on my laptop" issues. Then the rise of orchestrators meant that there again became a significant difference between running an app locally (in compose) and in production (on Kubernetes). Docker for Mac/Windows…

There's minikube. There's been minikube for a long while.

Note that minikube is built from docker's libmachine that was used in the pre-moby Docker Toolkit.

Re: Adding Kubernetes support to the Docker platform

#40
post #12

This really helps with the dev-to-production story for containers. When people first started using Docker containers, we were promised things would run identically in dev and production - no more "but it worked on my laptop" issues. Then the rise of orchestrators meant that there again became a significant difference between running an app locally (in compose) and in production (on Kubernetes). Docker for Mac/Windows…

There's minikube. There's been minikube for a long while.

Yes. And I don't mean to knock minikube, but this is potentially simpler and easier to use.
Post reply on HN