Closed hharnisc closed 8 years ago
So it turns out I needed to add another line to service.rc.yml file to only pull from docker hub if it isn't present in the local registry.
But the idea is to add this line to the containers:
containers:
- name: my-service
image: hharnisc/my-service
imagePullPolicy: IfNotPresent # <--- needed this
ports:
- containerPort: 8080
More detailed description of the change: https://github.com/hharnisc/generator-kube-service/pull/1
If I run
The image builds as expected and I can run it with a
docker run
command. However after deploying withspread build .
The image is stuck trying to pull the image from docker hub.Below is the log output from
kubectrl describe po thetime
If I ssh/login to the running redspread/localkube container with
And list docker images within the localkube container, I get the following output
After I do a
docker push hharnisc/thetime
, the image runs as expected in localkube.