Skip to content

ksh3490/my-container-with-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

Building container tutorial with golang

Test Environment:

  • WSL2 in Windows 10
  • go 1.17.8 linux/amd64

Note

  • This code should be run with root permission because of system call flag 'syscall.CLONE_NEWUTS'.
  • If you want to run this source code with a user without root privileges, please use 'sudo'.

How to run

  • Run Go command in this project path like below:
    • go run main.go run /bin/bash
  • Then a container will be started and a bash will run as an isolated process.

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages