This project demonstrates how to build a simple container in Go form scratch. It includes a basic setup for running an isolated process within a minimal filesystem.
To get started, extract the filesystem from the provided tarball.
Run the following command:
mkdir ubuntu-fs
tar -xzvf ubuntu-fs.tar.gz -C ubuntu-fs/
This will extract the filesystem into the ubuntu-fs
directory.
Make sure you have Go installed in your system
To run the container, use the following command:
sudo go run main.go run /bin/bash
This command starts a container and runs /bin/bash
inside the isolated environment.
This project is licensed under the MIT License.
Feel free to use, modify, and distribute this project as you like. ๐
Happy coding! ๐