Barge is a lightweight Linux distribution built with Buildroot specifically to run Docker containers.
It's designed for a local development in a virtual machine.
It's inspired by the following projects.
-
Built with Buildroot 2019.08 with Linux kernel v4.14.125 and glibc.
-
Strip down the Linux kernel modules and drivers
-
Busybox + the following utilities from Buildroot
- sudo, bash, wget, xz, sntp, logrotate
- ssh, scp, sftp, rsync
- acpid, sshd, dhcpcd, xtables-multi
- e2fsck, mke2fs, resize2fs, tune2fs
-
Default username: bargee
-
Default password: bargee
-
dumb-init binary is built-in /usr/bin.
e.g.,
docker run -d -v /usr/bin/dumb-init:/dumb-init:ro --entrypoint=/dumb-init <image> <command>
-
pkg command is built-in. You can install individual packages from Buildroot + α.
[bargee@barge ~]$ pkg Usage: pkg {build|install} [-f] <package-name> [build options] pkg show <package-name> pkg list
e.g.,
sudo pkg install vim
-
Enable to switch between Docker versions.
[bargee@barge ~]$ sudo /etc/init.d/docker Usage /etc/init.d/docker {start|stop|restart|status} [<version>|latest|default]
e.g.,
sudo /etc/init.d/docker restart latest
Copyright (c) 2015-2019 A.I. <[email protected]>
Licensed under the GNU General Public License, version 2 (GPL-2.0)
http://opensource.org/licenses/GPL-2.0