discordianfish / k3s-openwrt

openwrt package to install k3s
70 stars 15 forks source link

Managed to run it in docker+openwrt rootfs #1

Open zoobab opened 5 years ago

zoobab commented 5 years ago

Hi,

Just to tell you I managed to run it in Docker with an openwrt rootfs, but I had to mount /var/lib/rancher/k3s as a directory:

$ docker run -it --privileged -v $PWD/dir:/var/lib/rancher/k3s openwrt-18.06.4-x64 /bin/sh

I will try to document the procedure, but it is basically similar to https://openwrt.org/docs/guide-user/virtualization/docker_openwrt_image with importing http://downloads.openwrt.org/releases/18.06.4/targets/x86/64/openwrt-18.06.4-x86-64-generic-rootfs.tar.gz , creating /var/run and /var/lock, installing the package, and starting the k3s server.

issue-label-bot[bot] commented 5 years ago

Issue-Label Bot is automatically applying the label question to this issue, with a confidence of 0.68. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.