Coder Social home page Coder Social logo

wsjhk / fdocker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sky-big/fdocker

0.0 1.0 0.0 5.09 MB

fdocker is a simple container runc implementation in go, can use for learn, serverless of faas and so on

Home Page: https://github.com/sky-big/fdocker

License: Apache License 2.0

Go 99.36% Makefile 0.64%

fdocker's Introduction

Introduction

fdocker is a simple container runc implementation in go

QuickStart

  1. make sure operation system have aufs filesystem
make init

make 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.0

COMMANDS:
     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 command

GLOBAL OPTIONS:
   --help, -h     show help
   --version, -v  print the version


root@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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.