https://github.com/ejunjsh/mini-container
a mini container that implement a simple container environment
https://github.com/ejunjsh/mini-container
Last synced: 3 months ago
JSON representation
a mini container that implement a simple container environment
- Host: GitHub
- URL: https://github.com/ejunjsh/mini-container
- Owner: ejunjsh
- Created: 2018-07-30T07:48:41.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-01T12:56:41.000Z (almost 7 years ago)
- Last Synced: 2024-12-29T08:41:59.230Z (4 months ago)
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# mini-container
[](https://travis-ci.org/ejunjsh/mini-container)
a mini container that implement a simple container environment,only run in ubuntu
## install
go get github.com/ejunjsh/mini-container
## install debootstrap
sudo apt install debootstrap
## create the ubuntu chroot
sudo debootstrap --arch amd64 trusty /myroot
## create network namespacethis script depend on the `iptables`, and your default router interface must `ens33`,if not, you must update the script to your interface name
sudo sh net.sh
## run
sudo mini-container run bash