Skip to content

2SSK/container_from_scratch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Build my own container in Go ๐Ÿš€

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.

Extract the 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.

Run the Container

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.

License

This project is licensed under the MIT License.

Feel free to use, modify, and distribute this project as you like. ๐Ÿš€


Happy coding! ๐Ÿš€

About

Container From Scratch

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages