This is a simple Docker container written in Go
To help you to see better how a Container work "Globally"
- You need to have Golang installed
- You need to have ROOT ACCESS
git clone "git@github.com:valentinmne/Go-Docker-Container.git"
cd Go-Docker-container
sudo chmod +x rootfs.sh
./rootfs.sh
go run container.go run /bin/bash
make <OPTION>
Options | Description | In Terminal |
---|---|---|
run | Run the program with args | go run container.go run /bin/bash |
build | Just simply build the project | go build container.go |
exec | Execute the binary created by the build (With sudo) and the appropriated args | sudo ./container run /bin/bash |
full-build | Combination of build and exec commands |
go build container.go && sudo ./container run /bin/bash |
rm | Remove the binary file | sudo rm -rf container |
re | Combination of erase and full-build commands |
sudo rm -rf container && go build container.go && sudo ./container run /bin/bash |
- Own PID
- Hostname Definition
https://www.youtube.com/watch?v=Utf-A4rODH8
- valentinmne : valentin.moine@protonmail.com