GithubHelp home page GithubHelp logo

oyishyi-docker's Introduction

oyishyi-docker

0. motivation

This is a learning note of 《自己动手写 Docker》.

1. Blogs

  1. 使用 GoLang 从零开始写一个 Docker(概念篇)-- 《自己动手写 Docker》读书笔记
  2. 使用 GoLang 从零开始写一个 Docker(容器篇)-- 《自己动手写 Docker》读书笔记
  3. 使用 GoLang 从零开始写一个 Docker(镜像篇)-- 《自己动手写 Docker》读书笔记
  4. 使用 GoLang 从零开始写一个 Docker(容器进阶篇/完结篇?)-- 《自己动手写 Docker》读书笔记

1. How to use

Similar with the official Docker, my docker can only be used on Linux. Because it need the features of LXC(and aufs). You can try to run it on wsl(not tested although).

In linux environment, just run the pre-build binary file: ./docker.

2. Implemented commands

These have exactly the same usages as official Docker.

  1. ./docker images
  2. ./docker ps
  3. ./docker run
    • --name
    • presudo terminal or detach
      • -it
      • -d
    • volume
      • -v
    • resource limit
      • -m
      • -cpu
      • cpushare
  4. ./docker commit
  5. ./docker logs
  6. ./docker exec
  7. ./docker stop
  8. ./docker rm

3. How to use other images

The first time you run ./docker images, you will find only one image named busybox.
If you want to use other images, you need to follow the below steps:

  1. have an installed official docker
  2. docker pull the image you want to use
  3. run an image as a container(using -d)
  4. docker export this container as a tar file
  5. move this tar file to the runtime folder.
  6. have fun

oyishyi-docker's People

Contributors

oyishyi avatar

Stargazers

 avatar

Watchers

 avatar

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.