Skip to content

shubham1172/pocket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pocket

Container in Python 😸

Requirements

  • Linux operating system (tested on Debian and Arch)
  • Python3.6+

Using pocket

  • Clone the repository
$ git clone https://github.com/shubham1172/pocket
  • Install the requirements
$ python3 -m pip install -r requirements.txt
  • Create your first configuration file
$ touch pocket.yaml
$ cat <<EOF >> pocket.yaml
name: my-container
image: ubuntu:14.04
copy:
 - src: /etc/resolv.conf # for enabling DNS
   dest: etc/resolv.conf
run:
 - /bin/bash
limit:
 mem: 100
 cpu: 10
EOF
  • Start your first container
$ python3 -m pocket.cli.main create pocket.yaml
  • List all containers
$ python3 -m pocket.cli.main ls
  • Run a command in a container
$ python3 -m pocket.cli.main run <container-id> <command>
  • Delete a container
$ python3 -m pocket.cli.main rm <container-id>
  • Delete all containers
$ python3 -m pocket.cli.main rm -a

About

Container in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published