Kind cluster - Quick demo

Create new cluster: kind create cluster {name} kind load docker-image {image} --name {cluster_name} See if image is uploaded $ kubectl get nodes $ docker exec -it {node_name} bash $ crictl images If ImagePullBackOff still persists and its a custom image, check if imagePullPolicy is IfNotPresent instead of Always. $ kind delete cluster --name {name} ...

February 19, 2021 · Carlos Castro

Docker Entrypoint vs CMD

Docker has a default entrypoint which is /bin/sh -c but does not have a default command. ENTRYPOINT and --entrypoint were introduced to allow to override /bin/sh -c. CMD specify a default command that executes when the container is starting. Taking docker run -i -t ubuntu bash as example, with the entrypoint /bin/sh -c, the command is the actual thing that gets executed: docker run -i -t ubuntu <cmd>. C If we run docker run -i -t ubuntu, it will start bash shell and that’s because the Ubuntu Dockerfile has CMD ["bash"]...

February 9, 2021 · Carlos Castro