Making your first container

A Simple Ubuntu 20.04 Container:

Bootstrap: docker
From: ubuntu:20.04
sudo apptainer build first.sif first.def
apptainer shell first.sif

The %post Section

Bootstrap: docker
From: ubuntu:20.04
%post apt -qy update
apt -qy install sl
apptainer exec first.sif /usr/games/sl

Next Steps in %post

Complete first.def file for your container environment.

Recap

  • We started with a base container from a docker script for Ubuntu 20.04
  • We updated the apt list
  • We installed some software
  • We ran the container with 2 different methods

--

--

--

Intern @ Waymo (an Alphabet Company) and PhD student researching swarm & multi-agent systems @ Worcester Polytechnic Institute (WPI)

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Display live data using SignalR

How to send Bulk SMS using PHP

Dash Product Update — August 23rd, 2020

What’s Behind The Mobile App Development That Is Changing Our Life?

DevSecOps best practices for enterprises leveraging Kubernetes

Discovering Mojeek — how this privacy-conscious David is fighting back against the search industry…

Monetization Playbook #14 —aim to create 10X-20X more customer value than you capture

Monetization Playbook #14 -aim to create 10X-20X more customer value than you capture

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Davis Catherman

Davis Catherman

Intern @ Waymo (an Alphabet Company) and PhD student researching swarm & multi-agent systems @ Worcester Polytechnic Institute (WPI)

More from Medium

Owning the Data Plane PART 1

Building Sustainable Software and IoT Products

Embedded rules 📝

Forwarding Syslogs to External Servers