View on GitHub

presentations

Presentation notes from JMU Unix Users Group meetings

Ripley’s Thoughts on Containerization

And maybe some facts too


Game plan


First things: what about Docker and why won’t you say it?

We’ll get to that later


Ok, moving on…


What is the right size of a computer?


Bare Metal Servers

bg contain right:33%


Virtual Machines

bg contain right:33%


Containers

bg contain right:33%


Some history


A study of containerization shouldn’t be limited to Linux


https://lwn.net/Articles/780364/


Linux containers don’t really “exist”


What are namespaces?


What namespaces are there?


cgroups

You can use cgroups today inside systemd unit files to help control uncooperative services.


Enter Docker


Red Hat’s docker Concerns


The Red Hat container family


Docker vs docker vs containers


How is a container built? Declarative Dockerfile/Containerfile


How else is a container built? Scripted buildah


Demo logistics


Podman Hello World

Clean up


Docker Hub

If you look closely at the last command, you might notice this:

Resolved "hello-world" as an alias (/etc/containers/registries.conf.d/000-shortnames.conf)
Trying to pull docker.io/library/hello-world:latest...

Run some Ubuntu


Run some different Ubuntu


Inspect and clean up some Ubuntu


Let’s actually do some work in a container


What can we learn about this container?


Let’s build our own

<h1>I made a container at UUG</h1>
FROM httpd:2.4
COPY index.html /usr/local/apache2/htdocs/

Running our new fancy image


A quick buildah example

container=$(buildah from httpd:2.4)
buildah copy $container index.html /usr/local/apache2/htdocs/
buildah commit $container buildah-apache
buildah rm $container

Sharing containers with friends


ReactJS Finale