https://github.com/sky-big/fdocker
fdocker is a simple container runc implementation in go, can use for learn, serverless of faas and so on
https://github.com/sky-big/fdocker
Last synced: 17 days ago
JSON representation
fdocker is a simple container runc implementation in go, can use for learn, serverless of faas and so on
- Host: GitHub
- URL: https://github.com/sky-big/fdocker
- Owner: sky-big
- License: apache-2.0
- Created: 2019-07-05T08:40:16.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-08T08:38:17.000Z (almost 6 years ago)
- Last Synced: 2024-06-20T13:31:12.809Z (10 months ago)
- Language: Go
- Homepage: https://github.com/sky-big/fdocker
- Size: 4.98 MB
- Stars: 1
- Watchers: 0
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Introduction
fdocker is a simple container runc implementation in go
# QuickStart
1. make sure operation system have aufs filesystem
```
make initmake run
```# Usage
```
root@sky_big:~/gopath/src/github.com/sky-big/fdocker# fdocker
NAME:
fdocker - fdocker is a simple container runtime for function invoke.USAGE:
fdocker [global options] command [command options] [arguments...]VERSION:
0.0.0COMMANDS:
init Init container process run user's process in container. Do not call it outside
run Create a container with namespace and cgroups limit ie: fdocker run -ti [image] [command]
ps list all the containers
logs print logs of a container
exec exec a command into container
stop stop a container
rm remove unused containers
network container network commands
inspec inspec a container into
mem get a container mem info
help, h Shows a list of commands or help for one commandGLOBAL OPTIONS:
--help, -h show help
--version, -v print the versionroot@sky_big:~/gopath/src/github.com/sky-big/fdocker# fdocker run -h
NAME:
fdocker run - Create a container with namespace and cgroups limit ie: fdocker run -ti [image] [command]USAGE:
fdocker run [command options] [arguments...]OPTIONS:
--ti enable tty
-d detach container
-m value memory limit
--cpushare value cpushare limit
--cpuset value cpuset limit
--name value container name
-v value volume
-e value set environment
--net value container network
-p value port mapping
-u value user command owner
--images value image store path
```# Links
1. https://github.com/xianlubird/mydocker