Categorygithub.com/mhenke1/containerdemo
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"

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 /rootin 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