Anatomy of a sample docker file
Just a quick refresh on the elements of a sample docker file:
FROM ubuntu
LABEL maintainer="Mike <[email protected]>"
USER root
COPY ./foo.bash /
RUN apt -y update
RUN apt -y install foo foo2
RUN chmod 755 /foo.bash
USER nobody
ENTRYPOINT [ . . .
Explain to me like I'm 9: what exactly ARE Docker containers?
I recently came across what could be the best explanation of containers and wanted to share it.
Source: "Learning Docker" series on LinkedIn Learning by Carlos Nunez.
- A container is composed of two things: a Linux namespace and a Linux control group.
- Namespaces are a Linux kernel feature that provides . . .
Pondering the "it works on my machine" problem
I've been working recently with Kubernetes and docker (super fun!). A question kept lingering in the back of my mind though: why is inconsistent stability and results in prod such a broadly reported issue?
I came across a LinkedIn course by Carlos Nunez and I really liked the reasons he gave:
- Missing Tools - . . .
Kubernetes Refresher - Pods vs Containers vs Deployment vs Services
Another quick recap:
- Pods are the smallest unit of compute in Kubernetes.
- Kubernetes pods group similar containers into a logical unit.
- Containers inside of Kubernetes pods have the same IP address and move "together" from host to host.
- Pods get scheduled on to kubelets (nodes).
- While you can create . . .
Refresher on Docker Containers
Here's a quick recap on Docker containers and how they work.
- Containers are virtualized instances of operating system kernels.
- Be careful though: Unlike virtual machines, while containers look like separate smaller instances of Linux or Windows, they consume resources like processor time, memory, and disk space directly . . .
Data storage options for Kubernetes
Here's a high-level refresher on persistent storage options for K8 workloads. Note: there are a lot of techniques and ways to store data. These are just two popular examples.
Database storage - For example, a mysql or postgres SQL database running on a server that is separate from your cluster. Or perhaps leveraging a . . .
Micro-Learning Content on Deepstash
I'm a big fan of micro-learning (and learning on the go). As such, I thought it might be helpful if I start publishing a sub-set of blog material and notes in that format.
For now, I'm trying out a platform called "Deepstash". It's not exactly the service I was envisioning but it'll do for now. It's a . . .