repositorypackage
0.0.0-20241009151807-50c36547690d
Repository: https://github.com/mhenke1/containerdemo.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# README
Containerdemo
An updated version of the "Container in 100 lines of Go demo"
- Based on a blog post from Julian Friedman (Doctor Julz) – 2016
- Adopted for a conference talk by Liz Rice - 2018
- Adapted by me to use cgroup v2
Create the Demo Container
./createDemoContainer.sh
Run the Demo Container
docker run --mount type=bind,source=./main.go,target=/root/main.go --name "containerdemo1" -h "containerhost" --cap-add SYS_ADMIN --privileged -i -d containerdemo:v1
The go file is mounted in /root
in the container and can be edited on your host machine in the editor of your choice
Attach to the Demo Container
docker exec -it containerdemo1 bash
Reset the Show
on your host machine:
cp Versions/main1.go main.go
Run the Show
see snippets.txt
and the presentation in /Documentation