dock try to re-implement docker 🐳
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
internal set container id Nov 28, 2018
.gitignore implement init process of container Nov 25, 2018
LICENSE add license and readme Nov 25, 2018
README.md update readme Nov 28, 2018
go.mod set container id Nov 28, 2018
go.sum set container id Nov 28, 2018
main.go move to internal folder Nov 25, 2018

README.md

dock try to re-implement docker

dock try to implement most feature in docker

Todo

  • Daemon mode
  • Container image
  • Container volume
  • Container network
  • Container management
  • Container logs
  • ...

Usage

Run a container

[root@localhost dock]# ./dock run -ti /bin/sh
sh-4.2# ps
PID     TTY     TIME CMD
1       pts/0   00:00:00 sh
5       pts/0   00:00:00 ps

Limit memory usage and cpushare

dock run -ti -m 100m - cpushare 512 sh

License

dock is release under MIT LICENSE