Coder Social home page Coder Social logo

kata-containers / documentation Goto Github PK

View Code? Open in Web Editor NEW
497.0 50.0 302.0 3.09 MB

Kata Containers version 1.x documentation (for version 2.x see https://github.com/kata-containers/kata-containers).

Home Page: https://katacontainers.io/

License: Apache License 2.0

Shell 98.97% Makefile 1.03%

documentation's People

Contributors

abousselmi avatar amshinde avatar bergwolf avatar c3d avatar caoruidong avatar chavafg avatar cmaf avatar davidwang-yc avatar dong-liuliu avatar dougtw avatar eadamsintel avatar egernst avatar fidencio avatar gabyct avatar gnawux avatar grahamwhaley avatar jcvenegas avatar jimmy-xu avatar jodh-intel avatar leoluk avatar lifupan avatar liucimin avatar marcov avatar nitkon avatar pennyzct avatar qzivli avatar raravena80 avatar scooley avatar teawater avatar vijaydhanraj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

documentation's Issues

dev docs, need updating for initrd and qemu?

I think https://github.com/kata-containers/documentation/blob/master/Developer-Guide.md#build-and-install-the-kata-containers-runtime may be out of date due to a couple of recent changes:

  • the toml config file now has a line for an initrd.img, which is not built and installed by this doc - so kata-runtime fails to load the toml (as the file is not found, which is an error) (a quick fix is to just hand comment out the initrd img line in the toml)
  • the toml config file now referes to the system qemu (not the lite version), but on some distros (my Ubuntu machine for instance), the system qemu is old (2.5.0), and does not have the necessary nvdimm options, so errors out. (a quick fix is to update the toml by hand to point back at the lite qemu)

Create an architecture document

We need to create an ARCHITECTURE.md that covers the overall system.

This document could, if necessary, reference architecture documents found in each components repository. These would essentially document just themselves. The intent is to define once and reference as many times as needed.

For example, the ARCHITECTURE.md created in this repository may say something like:

For further details on the Kata shim implementation, refer to the shim architecture document

Component repositories

The individual README.md files in each code repository must contain a reference to this central architecture document.

If a component repository has a separate ARCHITECTURE.md this:

  • Must be referenced in the components README.md.
  • Must itself reference the central ARCHITECTURE.md document.

For an example of what we should be aiming for, see the Clear Containers architecture document:

Diagrams

All diagrams must:

  • Be stored along with their corresponding "source" files (for example, if a .png file is referenced, the .svg file that was used to generate the .png must also be stored to allow the diagrams to be updated by all.
  • Use freely available open formats for their sources.

Prevent multiple addition of kata runtimes in the docker configuration

If kata-runtime is already added as a runtime to kata-containers.conf
then you need not add it again. This is helpful when we redo some
of the earlier steps mentioned in the dev-guide and end up updating
docker config again resulting in multiple "--add-runtime kata-runtime=.."
which further results in failure in docker restart.

Ideally Should Be:
[Service]
Type=simple
ExecStart=
ExecStart=/usr/bin/dockerd -D --default-runtime runc --add-runtime kata-runtime=/usr/local/bin/kata-runtime

But Can Be:
[Service]
Type=simple
ExecStart=
ExecStart=/usr/bin/dockerd -D --default-runtime runc --add-runtime kata-runtime=/usr/local/bin/kata-runtime --add-runtime kata-runtime=/usr/local/bin/kata-runtime

Result:
sudo systemctl restart docker
systemctl status docker
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/docker.service.d
└─kata-containers.conf
Active: failed (Result: exit-code) since Mon 2018-04-09 21:22:08 IST; 536ms ago
Docs: https://docs.docker.com
Process: 21784 ExecStart=/usr/bin/dockerd -D --default-runtime runc --add-runtime kata-runtime=/usr/local/bin/kata-runtime --add-runtime kata-runtime=/usr/l
Main PID: 21784 (code=exited, status=1/FAILURE)
CPU: 59ms

Apr 09 21:22:08 localhost.localdomain dockerd[21784]: -v, --version Print version information
Apr 09 21:22:08 localhost.localdomain dockerd[21784]: and quit
Apr 09 21:22:08 localhost.localdomain dockerd[21784]: Run 'dockerd COMMAND --help' for more information on a command.
Apr 09 21:22:08 localhost.localdomain dockerd[21784]: , Code: 125
Apr 09 21:22:08 localhost.localdomain systemd[1]: docker.service: Service hold-off time over, scheduling restart.
Apr 09 21:22:08 localhost.localdomain systemd[1]: Stopped Docker Application Container Engine.
Apr 09 21:22:08 localhost.localdomain systemd[1]: docker.service: Start request repeated too quickly.
Apr 09 21:22:08 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
Apr 09 21:22:08 localhost.localdomain systemd[1]: docker.service: Unit entered failed state.
Apr 09 21:22:08 localhost.localdomain systemd[1]: docker.service: Failed with result 'exit-code'.

Fix runtime link in dev guide

The "Build and install a Kata Containers runtime" link should be "Build and install the Kata Containers runtime" to match the section name in the developer guide.

Embellish the readme

The README is somewhat sparse. Add some brief explanatory text and a few pointers.

Add an upgrading doc

Add a doc explaining how to "upgrade" from Clear Containers. At this stage, that will actually just be "install kata packages" 😄

qemu-img dependency

In the "Create an image" section,
in the "Build the image" sub section
I hit the "qemu-img" not installed dependency. It probably needs to be called out upfront in the "Assumptions" section up-top.

Update dev guide for OBS installation packages

Add details to the developer guide explaining that the recommended way to install Kata is using the OBS binary packages.

Devs can then override particular components by building them from source.

Need to update the prereqs for Kata Dev env setup

While trying to setup the Dev Environment for Kata I came across some dependencies (e.g make, gcc) which need to be installed before proceeding with the dev env setup. We can also incorporate links to relevant documents (e.g. Golang install steps)

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.