Pure alpine linux docker. Docker inside docker.
The ~800MB image has an already created minkikube instance with 4Gb diskspace and 1Gb RAM. This is only for experimentation and demo only. Do not use in production. The minikube binary from the official repository does not work in Alpine and had to be built from source. (See Dockerfile)
Starts a shell ready to docker & minikube
docker run -P -ti --privileged chaudhryfaisal/alpine-minikube bash
# wait 15 seconds and run docker ps or run watch docker ps
After the commands below navigate to http://127.0.0.1:30000/#!/overview?namespace=default
docker run -ti -p 30000 -p 31920 --rm --privileged chaudhryfaisal/alpine-minikube bash
[Hit Enter] to get the shell prompt
kubectl run webserver --image=nginx:alpine
kubectl expose deployment webserver --type=LoadBalancer --port=80
docker run --name minikube -p 31920:31920 -p 2375:2375 --privileged -d chaudhryfaisal/alpine-minikube
To start a shell in your new container.
docker exec -ti minikube /bin/bash
Now you can start containers inside your alpine-docker container.
docker run -d elasticsearch
docker images
docker ps -a
docker volume ls
If you need docker-compose inside your minikube container.
setup-compose
docker-compose up
Set your client system variables and go
export DOCKER_API_VERSION=1.23
export DOCKER_HOST='tcp://127.0.0.1:2375'
docker ps
docker-compose up