Skip to content

Instantly share code, notes, and snippets.

View pbannn's full-sized avatar

Patrick Bannan pbannn

  • Temple University
  • Philadelphia
View GitHub Profile
@pbannn
pbannn / EX.md
Last active October 8, 2025 02:26
ExtraCredit.md

Extra Credit

image Created the directory structure in the home directory - I used $HOME to access my home directory. image Downloaded the archive of the minimal Linux filesystem and extracted its contents into the apline directory which will serve as our read only lowerdir.
@pbannn
pbannn / lab4.md
Last active October 7, 2025 20:18
Lab 4 Mount Namespaces
image List of our first mount from the host. This is the default mount namespace for the host where all processes start. There are 20 process running and isolation has not been created as there is only one filesystem. Nothing to isolate from here. image image Terminal 2 and 3 create a bin/bash inside a set of new isolated namespaces using the unshare command. --Mount creates the new mount namespace and --make-private prevents changes from leaking to the host The PID are not the same from the host perspective but both appear as 1 inside their terminals. This is because the namespaces are isolated and both create the first p
@pbannn
pbannn / lab3.md
Created September 24, 2025 22:17
Lab03
image Created namespaces netns1 and netns2 image Connected the isolated containers to a network cable through veth pairing. One end of the cable stays on host and the other goes to the namespace image Now we turn on the network interfaces and assign them IP addresses using the given ip's and commands. We then add routes so the host knows how to reach the IP. The command at the end shows that our interfaces and IP addresses for netns1 only exist in netns1
@pbannn
pbannn / Lab2.md
Last active September 11, 2025 01:49
Lab2_Containerization

Step 1- Diagram Setup:

image

We created the host and the ubuntu container in google cloud shell. After installing net-tools we are able to access ifconfig and get the IP for each container. The IP for our host and the docker bridge is 172.17.0.1. This is the IP we are using to access google cloud and docker.

image