How do I run a docker image that I built locally on Google Container Engine?
Follow theses steps:
Setup some environment variables
gcloud components update kubectl
gcloud config set project <your-project>
gcloud config set compute/zone <your-cluster-zone>
gcloud config set container/cluster <your-cluster-name>
gcloud container clusters get-credentials <your-cluster-name>
Tag your image
docker tag <your-image> gcr.io/<your-project>/<your-image>
Push your image
gcloud docker push gcr.io/<your-project>/<your-image>
Create a pod manifest for your container: my-pod.yaml
- name: <container-name>
Schedule this pod
kubectl create -f my-pod.yaml
Repeat from step (4) for each pod you want to run. You can have multiple definitions in a single file using a line with --- as delimiter.
run docker login on minions before starting.
docker login --username=<> --password=<> --email=<> <DockerServer>
In order to pull private dockerhub hosted ...READ MORE
Docker defines a format for bundling an ...READ MORE
n order to have HTTPs service exposed ...READ MORE
switch Docker to 1.12.x; Kubernetes doesn't support ...READ MORE
Hey @nmentityvibes, you seem to be using ...READ MORE
It can work if you try to put ...READ MORE
When you use docker-compose down, all the ...READ MORE
Swarm is easy handling while kn8 is ...READ MORE
This is currently not possible on google ...READ MORE
To run ./cluster/kube-up.sh, you most likely need compute scope ...READ MORE
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.