Hi all,
After long days i am writing this blog, i think it will be useful for beginner who want to work with containers.
Containers:
It's a hot topic in todays IT world. I dont want to explain about containers. but these are the examples for containers.
- Docker
- rkt
- runC
Docker is provided by the Docker community. rkt is provided by the CoreOs before that they used Docker as their container. And runC is the Open source container which is developed in golang (Go language).
You can find the source of runC in the following link which is available in the Github:
And also you can get lot of information in the github site itself.
runC Installation:
If you want install use runC you have go language in your system.
1. Install go from the binary:
- Download go language binary in the follwoing link:
or
- Runt these command to extract the archive :
- tar -C /usr/local -xzf go1.5.1.linux-amd64.tar.gz
- Copy export PATH=$PATH:/usr/local/go/bin to /etc/profile
or
- Copy export PATH=$PATH:/usr/local/go/bin to /root/.profile
Then run the following command in the terminal:
$ go version
go version go1.5.1 linux/amd64
which means go language installed successfully in your system.
Now we have to install runC library from the source. kindly follow the following steps:
2. Install libseccomp-dev from your repository and its done by running the command -
apt-get install libseccomp-dev
3. Create one folder namely
- mkdir runc_gocode
- export GOPATH=/usr/src/runc_gocode
- cd runc_gocode/
- mkdir src
- cd src
- mkdir gihub.com/opencontainers
git clone https://github.com/opencontainers/runc
5. cd runc
6. make
7. sudo make install ( if you are non-root user)
If no error shown means runC is installed successfully in your machine.
Run the following commands to check whether runC is properly installed or not:
$ runc -v
runc version 0.3
In my next blog i will share you about running containers and creating vm's in runC. If you need more information kindly have a eye on runC github page. Thanks for your time.
References:
Keep explore until you got satisfied.
thanks & regards,
cooldharma06 .. :)
