简体   繁体   中英

How to install kubernetes on a docker container?

Is this possible?

I want to create an image to run a kubernetes worker inside a docker container.

I tryed using dind images but it didn't work... Any ideas?

There are several options, for example the official kind (kubernetes in docker) project: https://kind.sigs.k8s.io/

Depending on your use case, k3s might be a good fit as well: https://k3s.io/ here is an example with docker-compose: https://www.trion.de/news/2019/08/28/kubernetes-in-docker-mit-k3s.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM