Docker Tag, Containers and Kubernetes Pods: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * Docker Concepts - Tag =Overview= Containers executed by Docker behave differently in respect t...") |
|||
Line 6: | Line 6: | ||
Containers executed by Docker behave differently in respect to tag resolution than the same containers executed from a Kubernetes pod. | Containers executed by Docker behave differently in respect to tag resolution than the same containers executed from a Kubernetes pod. | ||
We create a "color:latest" container that serves "blue" and push it on Docker Hub. | |||
Dockerfile: | |||
FROM busybox | |||
CMD echo "I am blue" | |||
docker build -t docker.io/ovidiufeodorov/color:latest . | |||
docker push ovidiufeodorov/color |
Revision as of 20:46, 12 August 2019
Internal
Overview
Containers executed by Docker behave differently in respect to tag resolution than the same containers executed from a Kubernetes pod.
We create a "color:latest" container that serves "blue" and push it on Docker Hub.
Dockerfile:
FROM busybox CMD echo "I am blue"
docker build -t docker.io/ovidiufeodorov/color:latest . docker push ovidiufeodorov/color