Skip to content

A simple container implementation using namespaces with golang

Notifications You must be signed in to change notification settings

zeyneloz/simple-container-with-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Very simple container using golang

This is a very basic example of how docker creates the containers using linux namespaces under the hood.

  • You need to run this go program on a Linux machine. I suggest working on a virtual machine.
  • rootfs is just a small linux root file system. I used Busybox rootfs

TL;DR

  • Clone git repo
  • run mkdir rootfs
  • run tar xvf rootfs.tar -C rootfs
  • Now you are ready to run the container: go run engine.go run /bin/sh
  • then you will have a ssh connection in to the container.

About

A simple container implementation using namespaces with golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages