Welcome Guest, Not a member yet? Create Account  




Docker on VyOS

#1

Hi,

I made VyOS which can run Docker for fun :)

ISO:
https://github.com/higebu/build-iso/rele...-amd64.iso

Branches:
https://github.com/higebu/build-iso/tree/helium-docker
https://github.com/higebu/vyos-kernel/tr...ium-docker

Usage:
1. Install and start docker
Code:
configure
set system package repository squeeze url http://ftp.jp.debian.org/debian/
set system package repository squeeze distribution squeeze
set system package repository squeeze components 'main contrib non-free'
set system package repository squeeze-lts url http://ftp.jp.debian.org/debian/
set system package repository squeeze-lts distribution squeeze-lts
set system package repository squeeze-lts components 'main contrib non-free'
commit
save
sudo apt-get update
curl -sSL https://get.docker.com/ | /bin/sh
sudo usermod -aG docker vyos
# logout and login
sudo sed -i '/--no-close/d' /etc/init.d/docker
sudo /etc/init.d/docker start
2. Run debian container
Code:
docker run -it debian:latest /bin/bash

And I try to make VyOS docker image now. But the image can not get IP...
https://registry.hub.docker.com/u/higebu/vyos/
Reply

#2

Wow! great concept.

Did you manage to get any further with this?

We were thinking of trying something like this to get over the lack of vrf-lite or MPLS. Just run vyos in a docker container!
Reply

#3

(29/01/2015, 00:17)chrisgibbs Wrote: Wow! great concept.

Did you manage to get any further with this?

We were thinking of trying something like this to get over the lack of vrf-lite or MPLS. Just run vyos in a docker container!

The concept appears to be gaining traction with quagga - some patches (which I haven't used) have been on the quagga-dev mailing for a while. https://lists.quagga.net/pipermail/quagg...11803.html
I read through the thread this morning and it appears they are umming and arring on whether to have multiple processes, for each namespace, or whether to expand the data structures to support a VRF tag passed between single processes. (Or even both based on the list).

The pragmatic short term solution is definitely getting vyos-in-docker working. Centralised control-plane on the VM/baremetal VyOS instance would be sugar on top.

Exciting stuff though.
Reply

#4

Hi,

I'm trying to get linux containers working in vyos. I need a recent linux kernel for hw support, so the beta build based on jessie with 4.4 kernel is great.
I see you guys seem to have got docker working in the squeeze based versions, so I was wondering if you could share some insights on the required steps to get this working.

It seems the kernel config for vyos does not enable all the cgroups required by lxc to mount and run. I have set up a build environment for vyos based on jessie and can build the iso.
What would be the correct way to configure and enable these cgroups in this build setup? 

Thanks,
hp
Reply

#5

(08/03/2017, 11:12)hpflux Wrote: Hi,

I'm trying to get linux containers working in vyos. I need a recent linux kernel for hw support, so the beta build based on jessie with 4.4 kernel is great.
I see you guys seem to have got docker working in the squeeze based versions, so I was wondering if you could share some insights on the required steps to get this working.

It seems the kernel config for vyos does not enable all the cgroups required by lxc to mount and run. I have set up a build environment for vyos based on jessie and can build the iso.
What would be the correct way to configure and enable these cgroups in this build setup? 

Thanks,
hp

VyOS kernel source is here: https://github.com/vyos/vyos-kernel. And this is a submodule of vyos-build. See https://github.com/vyos/vyos-build/tree/...t/packages.
So you can use your forked vyos-kernel in vyos-build with git submodule.

Thanks!
Reply

#6

Hi higebu,

Thanks for taking the time! I'll try to read up on the live-build setup, but would the main steps then be to
- clone the vyos-kernel and configure it to include nessecary cgroups and then build
- configure vyos-build to include the local kernel
- run vyos-build again

Sorry for the noob-ish questions, I'm not a kernel-hacker (yet :-)

Thanks again!
Reply





Users browsing this thread:
1 Guest(s)